<?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/"
	>

<channel>
	<title>Notes From A Dumb Coder</title>
	<atom:link href="http://coding.itsallreallybad.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://coding.itsallreallybad.com</link>
	<description>Stuff I Wasted Hours Finding Out</description>
	<lastBuildDate>Wed, 10 Feb 2010 11:09:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Oh, the humanity.</title>
		<link>http://coding.itsallreallybad.com/2010/oh-the-humanity/</link>
		<comments>http://coding.itsallreallybad.com/2010/oh-the-humanity/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 11:09:39 +0000</pubDate>
		<dc:creator>sy</dc:creator>
				<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[i18n]]></category>

		<guid isPermaLink="false">http://coding.itsallreallybad.com/?p=4</guid>
		<description><![CDATA[After spending ages looking for the &#8216;right&#8217; way to set the &#8216;humanized&#8217; name for an ActiveRecord attribute (seeing as human_attribute is deprecated),  it seems The Way now is to do this with locales.
Specifically, having something like this in your config/locales/en.yml
activerecord:
    attributes:
      model_name:
        attr_name: "Your mother"
&#8230;and this will make all the model errors [...]]]></description>
			<content:encoded><![CDATA[<p>After spending ages looking for the &#8216;right&#8217; way to set the &#8216;humanized&#8217; name for an ActiveRecord attribute (seeing as human_attribute is deprecated),  it seems The Way now is to do this with locales.</p>
<p>Specifically, having something like this in your config/locales/en.yml</p>
<pre>activerecord:
    attributes:
      model_name:
        attr_name: "Your mother"</pre>
<p>&#8230;and this will make all the model errors use the nice name. Hurrah.</p>
<p>Of course, you&#8217;ll still need something like <a href="http://github.com/kipcole9/rails-i18n-translation-inheritance-helper">http://github.com/kipcole9/rails-i18n-translation-inheritance-helper</a> to stop you needing to add the same thing into en-us, en-gb, etc&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://coding.itsallreallybad.com/2010/oh-the-humanity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
