<?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>Xucros &#187; rails</title>
	<atom:link href="http://xucros.com/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://xucros.com</link>
	<description></description>
	<lastBuildDate>Sat, 31 Dec 2011 19:37:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='xucros.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Xucros &#187; rails</title>
		<link>http://xucros.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://xucros.com/osd.xml" title="Xucros" />
	<atom:link rel='hub' href='http://xucros.com/?pushpress=hub'/>
		<item>
		<title>Quick tip for BackgrounDRb users</title>
		<link>http://xucros.com/2009/01/09/quick-tip-for-backgroundrb-users/</link>
		<comments>http://xucros.com/2009/01/09/quick-tip-for-backgroundrb-users/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 18:39:28 +0000</pubDate>
		<dc:creator>lucasuyezu</dc:creator>
				<category><![CDATA[en-US]]></category>
		<category><![CDATA[BackgrounDRb]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://xucros.com/?p=20</guid>
		<description><![CDATA[Earlier today I was configuring BackgrounDRb, and I started to receive this error:     lucas@work:~$ script/backgroundrb start         Starting BackgrounDRb ….  /app/trunk/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:42:in `initialize’: No such file or directory &#8211; /app/current/tmp/pids/backgroundrb_11006.pid (Errno::ENOENT)         from /app/trunk/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:42:in `open’ &#8230; <a href="http://xucros.com/2009/01/09/quick-tip-for-backgroundrb-users/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=20&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Earlier today I was configuring BackgrounDRb, and I started to receive this error:</p>
<p> </p>
<p> </p>
<p>lucas@work:~$ script/backgroundrb start</p>
<p>        Starting BackgrounDRb …. </p>
<p>/app/trunk/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:42:in `initialize’: No such file or directory &#8211; /app/current/tmp/pids/backgroundrb_11006.pid (Errno::ENOENT)</p>
<p>        from /app/trunk/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:42:in `open’</p>
<p>        from /app/trunk/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:42:in `start’</p>
<p>        from /app/current/script/backgroundrb:35</p>
<p>After a little bit of hacking, I found that it tries to create the pid file, but fails if the directories are not created. Something I don&#8217;t understand is why the plugin doesn&#8217;t create it, since it is so simple.</p>
<p>So, if this problem ever happens to you, a simple mkdir RAILS_HOME/tmp/pids will save your life.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucros.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucros.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucros.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucros.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucros.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucros.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucros.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucros.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucros.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucros.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucros.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucros.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucros.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucros.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=20&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucros.com/2009/01/09/quick-tip-for-backgroundrb-users/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864ae2178a21699972a64f5262b62b00?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">lucasuyezu</media:title>
		</media:content>
	</item>
		<item>
		<title>Dica rápida para quem usa BackgrounDRb</title>
		<link>http://xucros.com/2009/01/09/dica-rapida-para-quem-usa-backgroundrb/</link>
		<comments>http://xucros.com/2009/01/09/dica-rapida-para-quem-usa-backgroundrb/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 18:32:51 +0000</pubDate>
		<dc:creator>lucasuyezu</dc:creator>
				<category><![CDATA[pt-BR]]></category>
		<category><![CDATA[BackgrounDRb]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://xucros.com/?p=17</guid>
		<description><![CDATA[Hoje, ao tentar configurar o BackgrounDRb, comecei a tomar esse erro na cara ao tentar subir o servidor de processos: lucas@work:~$ script/backgroundrb start         Starting BackgrounDRb &#8230;.  /app/trunk/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:42:in `initialize&#8217;: No such file or directory &#8211; /app/current/tmp/pids/backgroundrb_11006.pid (Errno::ENOENT)    &#8230; <a href="http://xucros.com/2009/01/09/dica-rapida-para-quem-usa-backgroundrb/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=17&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hoje, ao tentar configurar o BackgrounDRb, comecei a tomar esse erro na cara ao tentar subir o servidor de processos:</p>
<p>lucas@work:~$ script/backgroundrb start</p>
<p>        Starting BackgrounDRb &#8230;. </p>
<p>/app/trunk/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:42:in `initialize&#8217;: No such file or directory &#8211; /app/current/tmp/pids/backgroundrb_11006.pid (Errno::ENOENT)</p>
<p>        from /app/trunk/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:42:in `open&#8217;</p>
<p>        from /app/trunk/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:42:in `start&#8217;</p>
<p>        from /app/current/script/backgroundrb:35</p>
<div>Depois de fuçar um pouco, o problema é que se o arquivo não existe, ele tenta criar, mas falha se o diretório pids não existir. O que eu não entendi é porque ele não cria os diretórios que faltam no meio do caminho.</div>
<div>Enfim, se esse problema acontecer com você, um simples mkdir RAILS_HOME/tmp/pids salvará a sua vida.</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucros.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucros.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucros.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucros.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucros.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucros.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucros.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucros.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucros.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucros.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucros.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucros.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucros.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucros.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=17&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucros.com/2009/01/09/dica-rapida-para-quem-usa-backgroundrb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864ae2178a21699972a64f5262b62b00?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">lucasuyezu</media:title>
		</media:content>
	</item>
		<item>
		<title>config.gem, unite!</title>
		<link>http://xucros.com/2008/12/04/configgem-unite-2/</link>
		<comments>http://xucros.com/2008/12/04/configgem-unite-2/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 19:26:09 +0000</pubDate>
		<dc:creator>lucasuyezu</dc:creator>
				<category><![CDATA[en-US]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rubygems]]></category>

		<guid isPermaLink="false">http://xucros.wordpress.com/?p=15</guid>
		<description><![CDATA[I got tired of letting config.gem kick my behind, so I created a little github project to unite all config.gem in one place, with its options like :lib, :version, making it easy to find. So, if you want to colaborate &#8230; <a href="http://xucros.com/2008/12/04/configgem-unite-2/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=15&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I got tired of letting config.gem kick my behind, so I created a little github project to unite all config.gem in one place, with its options like :lib, :version, making it easy to find.</p>
<p>So, if you want to colaborate just clone the repo and add the config.gem to the gems you use.</p>
<p><a href="http://github.com/lucasuyezu/config.gem--unite-/tree/master" target="_blank">http://github.com/lucasuyezu/config.gem&#8211;unite-/tree/master</a><br />
The project is public, I hope google index it soon so people can find the config.gem for their gems in the web quickly.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucros.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucros.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucros.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucros.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucros.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucros.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucros.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucros.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucros.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucros.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucros.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucros.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucros.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucros.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=15&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucros.com/2008/12/04/configgem-unite-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864ae2178a21699972a64f5262b62b00?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">lucasuyezu</media:title>
		</media:content>
	</item>
		<item>
		<title>config.gem, unite!</title>
		<link>http://xucros.com/2008/12/04/configgem-unite/</link>
		<comments>http://xucros.com/2008/12/04/configgem-unite/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 19:14:18 +0000</pubDate>
		<dc:creator>lucasuyezu</dc:creator>
				<category><![CDATA[pt-BR]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://xucros.wordpress.com/?p=13</guid>
		<description><![CDATA[Cansei de apanhar dos config.gem e criei um projetinho no github pra ver se consigo reunir no mesmo lugar os config.gems como devem ser feitos, com as opções, libs e tudo certinho. Então, quem quiser colaborar, é só clonar o &#8230; <a href="http://xucros.com/2008/12/04/configgem-unite/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=13&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Cansei de apanhar dos config.gem e criei um projetinho no github pra ver se consigo reunir no mesmo lugar os config.gems como devem ser feitos, com as opções, libs e tudo certinho.</p>
<p>Então, quem quiser colaborar, é só clonar o repo e adicionar as gems que vcs utilizam.</p>
<p><a href="http://github.com/lucasuyezu/config.gem--unite-/tree/master" target="_blank">http://github.com/lucasuyezu/config.gem&#8211;unite-/tree/master</a></p>
<p>O projeto tá público, espero que o google indexe logo e fique fácil de achar os config.gems na web depois.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucros.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucros.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucros.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucros.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucros.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucros.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucros.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucros.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucros.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucros.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucros.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucros.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucros.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucros.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=13&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucros.com/2008/12/04/configgem-unite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864ae2178a21699972a64f5262b62b00?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">lucasuyezu</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8220;t&#8221; method in models and controllers</title>
		<link>http://xucros.com/2008/12/01/t-method-in-models-and-controllers/</link>
		<comments>http://xucros.com/2008/12/01/t-method-in-models-and-controllers/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 11:44:51 +0000</pubDate>
		<dc:creator>lucasuyezu</dc:creator>
				<category><![CDATA[en-US]]></category>
		<category><![CDATA[I18n]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[railscasts]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://xucros.wordpress.com/?p=10</guid>
		<description><![CDATA[I&#8217;m using the i18n api in my pet project and ran into a little problem: I need to use the &#8220;t&#8221; method in models and controllers, but I couldn&#8217;t since &#8220;t&#8221; is for views. I thought about including the views &#8230; <a href="http://xucros.com/2008/12/01/t-method-in-models-and-controllers/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=10&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using the i18n api in my pet project and ran into a little problem: I need to use the &#8220;t&#8221; method in models and controllers, but I couldn&#8217;t since &#8220;t&#8221; is for views.</p>
<p>I thought about including the views modules where needed, which is very ugly. But, <a href="http://railscasts.com">Ryan Bates</a> showed me the solution: If you&#8217;re outside the view, call &#8220;I18n.translate&#8221;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucros.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucros.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucros.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucros.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucros.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucros.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucros.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=10&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucros.com/2008/12/01/t-method-in-models-and-controllers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864ae2178a21699972a64f5262b62b00?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">lucasuyezu</media:title>
		</media:content>
	</item>
		<item>
		<title>Método &#8220;t&#8221; nos models e controllers</title>
		<link>http://xucros.com/2008/12/01/metodo-t-nos-models-e-controllers/</link>
		<comments>http://xucros.com/2008/12/01/metodo-t-nos-models-e-controllers/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 11:38:34 +0000</pubDate>
		<dc:creator>lucasuyezu</dc:creator>
				<category><![CDATA[pt-BR]]></category>
		<category><![CDATA[I18n]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[railscasts]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://xucros.wordpress.com/?p=7</guid>
		<description><![CDATA[Eu estou usando a api de I18n no meu pet project e me deparei com um problema: eu precisava usar o método &#8220;t&#8221; nos models e controllers, mas não conseguia, já que &#8220;t&#8221; é um método para views. Cheguei a &#8230; <a href="http://xucros.com/2008/12/01/metodo-t-nos-models-e-controllers/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=7&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Eu estou usando a api de I18n no meu pet project e me deparei com um problema: eu precisava usar o método &#8220;t&#8221; nos models e controllers, mas não conseguia, já que &#8220;t&#8221; é um método para views.</p>
<p>Cheguei a pensar em dar include dos módulos da view onde precisasse, o que é muito porco. Porém, contudo, entretanto, todavia, <a href="http://railscasts.com" target="_blank">Ryan Bates</a> mostrou a solução para o meu problema: Se você estiver fora da view e precisar traduzir algo, use &#8220;I18n.translate&#8221;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucros.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucros.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucros.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucros.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucros.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucros.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucros.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=7&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucros.com/2008/12/01/metodo-t-nos-models-e-controllers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864ae2178a21699972a64f5262b62b00?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">lucasuyezu</media:title>
		</media:content>
	</item>
	</channel>
</rss>
