<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>http://regedor.com/ &#187; plugin</title>
	<atom:link href="http://regedor.com/tag/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://regedor.com</link>
	<description>Just another weblog written by an human</description>
	<lastBuildDate>Mon, 02 Nov 2009 19:42:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='regedor.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/7fc9f61f922100cfbf3dcbd3d66a0986?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>http://regedor.com/ &#187; plugin</title>
		<link>http://regedor.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://regedor.com/osd.xml" title="http://regedor.com/" />
	<atom:link rel='hub' href='http://regedor.com/?pushpress=hub'/>
		<item>
		<title>ActionMailler and Gmail (no plugins)</title>
		<link>http://regedor.com/2009/10/17/actionmailler-and-gmail-no-plugins/</link>
		<comments>http://regedor.com/2009/10/17/actionmailler-and-gmail-no-plugins/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 22:03:34 +0000</pubDate>
		<dc:creator>Regedor</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://regedor.com/?p=216</guid>
		<description><![CDATA[Last week I had some problems while trying to configure the ActionMailler with Gmail. I already have some applications in production mode recurring to this system, but this one, using ruby 1.8.7 and rails 2.3.3 gave me some trouble. Gmail requires TLS, older versions of ruby and rails do not support that, the work around [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=regedor.com&amp;blog=2140217&amp;post=216&amp;subd=miguelregedor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Last week I had some problems while trying to configure the ActionMailler with Gmail. I already have some applications in production mode recurring to this system, but this one, using ruby 1.8.7 and rails 2.3.3 gave me some trouble. Gmail requires TLS, older versions of ruby and rails do not support that, the work around was a pluging to enhance it(for example <a href="http://github.com/openrain/action_mailer_tls/tree/master" title="Gmail e ActionMailer">ActionMailerTLS</a>). If you are using Ruby 1.8.7 and Rails 2.2.1, or later versions, you don&#8217;t need any plugin, you only need to follow my instructions.</p>
<p>Add the following lines in your config/enviroments/production.rb</p>
<blockquote><pre style='color:#000000;background:#ffffff;'>config<span style='color:#808030;'>.</span>action_mailer<span style='color:#808030;'>.</span>delivery_method <span style='color:#808030;'>=</span> :smtp
config<span style='color:#808030;'>.</span>action_mailer<span style='color:#808030;'>.</span>smtp_settings <span style='color:#808030;'>=</span> YAML<span style='color:#808030;'>.</span><span style='color:#400000;'>load</span> File<span style='color:#808030;'>.</span><span style='color:#400000;'>open</span><span style='color:#808030;'>(</span><span style='color:#0000e6;'>"#{RAILS_ROOT}/config/mailer.yml"</span><span style='color:#808030;'>)</span>
</pre>
</blockquote>
<p>And then create the yaml file config/mailer.yml :</p>
<blockquote><pre style='color:#000000;background:#ffffff;'><span style='color:#808030;'>-</span><span style='color:#808030;'>-</span><span style='color:#808030;'>-</span>
  :enable_starttls_auto: <span style='color:#800000;font-weight:bold;'>true</span> <span style='color:#696969;'># This is how you tell ActionMailler to use tls</span>
  :address: smtp<span style='color:#808030;'>.</span>gmail<span style='color:#808030;'>.</span>com
  :port: <span style='color:#008c00;'>587</span>
  :domain: gmail<span style='color:#808030;'>.</span>com
  :user_name: my_username <span style='color:#696969;'>#You should type your username, you should not include the "@gmail.com".</span>
  :password: my_password <span style='color:#696969;'>#You should type your password</span>
  :authentication: :plain
</pre>
</blockquote>
<p>That&#8217;s it!</p>
<p>Now take a look in this notifier class example:</p>
<blockquote><pre style='color:#000000;background:#ffffff;'><span style='color:#800000;font-weight:bold;'>class</span> Notifier &lt; ActionMailer::Base
  <span style='color:#800000;font-weight:bold;'>def</span> activation_instructions<span style='color:#808030;'>(</span>user<span style='color:#808030;'>)</span>
    @recipients  <span style='color:#808030;'>=</span> <span style='color:#0000e6;'>"#{user.email}"</span>
    <span style='color:#696969;'>#@from        = "Miguel </span><span style='color:#0000e6;'>&lt;</span><span style='color:#7144c4;'>my_username@gmail.com</span><span style='color:#0000e6;'>&gt;</span><span style='color:#696969;'>" # Doesn't work anymore </span>
    @from        <span style='color:#808030;'>=</span> <span style='color:#0000e6;'>"my_username@gmail.com"</span>
    @subject     <span style='color:#808030;'>=</span> <span style='color:#0000e6;'>"[Card-Sorting] "</span>
    @sent_on     <span style='color:#808030;'>=</span> Time<span style='color:#808030;'>.</span>now
    @subject    <span style='color:#808030;'>+</span><span style='color:#808030;'>=</span> <span style='color:#0000e6;'>"Important"</span>
    @body<span style='color:#808030;'>[</span>:user<span style='color:#808030;'>]</span> <span style='color:#808030;'>=</span> user
  <span style='color:#800000;font-weight:bold;'>end</span>
<span style='color:#800000;font-weight:bold;'>end</span>
</pre>
</blockquote>
<p>There is a lack of backward compatible. Due to some changes in the latest versions you cannot use that syntax anymore, if you are upgrading from old versions be careful, you should only simply specify your email to get it correctly parsed.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miguelregedor.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miguelregedor.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miguelregedor.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miguelregedor.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miguelregedor.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miguelregedor.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miguelregedor.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miguelregedor.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miguelregedor.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miguelregedor.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miguelregedor.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miguelregedor.wordpress.com/216/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miguelregedor.wordpress.com/216/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miguelregedor.wordpress.com/216/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=regedor.com&amp;blog=2140217&amp;post=216&amp;subd=miguelregedor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://regedor.com/2009/10/17/actionmailler-and-gmail-no-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80583db5af674ca20393f42a20101129?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Regedor</media:title>
		</media:content>
	</item>
		<item>
		<title>Javascript auto include rails plugin</title>
		<link>http://regedor.com/2009/02/26/javascript-auto-include-rails-plugin/</link>
		<comments>http://regedor.com/2009/02/26/javascript-auto-include-rails-plugin/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 21:12:57 +0000</pubDate>
		<dc:creator>Regedor</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://miguelregedor.wordpress.com/?p=125</guid>
		<description><![CDATA[I need to check this link latter: http://blog.media72.net/2008/05/13/javascript-auto-include-rails-plugin/ I haven&#8217;t tried it yet but seems a good way to maintain your .js files organized.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=regedor.com&amp;blog=2140217&amp;post=125&amp;subd=miguelregedor&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I need to check this link latter:</p>
<p>http://blog.media72.net/2008/05/13/javascript-auto-include-rails-plugin/</p>
<p>I haven&#8217;t tried it yet but seems a good way to maintain your .js files organized.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/miguelregedor.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/miguelregedor.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/miguelregedor.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/miguelregedor.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/miguelregedor.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/miguelregedor.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/miguelregedor.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/miguelregedor.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/miguelregedor.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/miguelregedor.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/miguelregedor.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/miguelregedor.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/miguelregedor.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/miguelregedor.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=regedor.com&amp;blog=2140217&amp;post=125&amp;subd=miguelregedor&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://regedor.com/2009/02/26/javascript-auto-include-rails-plugin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/80583db5af674ca20393f42a20101129?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Regedor</media:title>
		</media:content>
	</item>
	</channel>
</rss>