title: How can I translate the ActiveRecord attribute name in Rails 3.2?
body: <p>I have the following validation in my model ( User ):</p>
  
  <pre><code>  validates :first_name,:length =&gt; {:minimum =&gt; 2,:maximum =&gt; 50},:format =&gt; { :with =&gt; /[a-zA-Z]+/ }
  </code></pre>
  
  <p>I have the following in my yml locales file:</p>
  
  <pre><code> attributes:
     first_name:
       too_short: "First name is too short"
       too_long: "First name is too long"
       invalid: "First name is not valid"
  </code></pre>
  
  <p>Now, if I start a <code>rails console</code>, and write the following:</p>
  
  <pre><code>a = User.new
  a.valid?
  a.errors.full_messages
  </code></pre>
  
  <p>I will see the following errors:</p>
  
  <pre><code>["First name First name is too short", "First name First name is not valid"]
  </code></pre>
  
  <p>As you can see, the attribute name is also prepended to the field error. So far, everywhere in my code, I have used <code>model.errors[:field]</code>, and this will always show me the string I have in the yml file, but I'd like to change the strings to:</p>
  
  <pre><code> attributes:
     first_name:
       too_short: " is too short"
       too_long: " is too long"
       invalid: " is not valid"
  </code></pre>
  
  <p>And use the full_messages version. The problem is, I don't know how to translate the attribute name. Let's say for example, that I'd like instead of First name, to have Name first. How would I do it?</p>