title: Devise, customizing the error messages?
body: <p>I'm using rails 3 with devise.</p>
  
  <p>I have a User table with fields: email, password, fname, lname</p>
  
  <p>I currently output errors in my view as follows:</p>
  
  <pre><code>&lt;% if @user.errors.any? %&gt;
      &lt;div id="error_explanation" class="error"&gt;
      &lt;h2&gt;Hold on!&lt;/h2&gt;
          &lt;ul&gt;
              &lt;% @user.errors.full_messages.each do |msg| %&gt;
                  &lt;li&gt;&lt;%= msg %&gt;&lt;/li&gt;
              &lt;% end %&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>Problem is this renders as: </p>
  
  <pre><code>Email The User's Email cannot be blank
  Password The User's Password cannot be blank
  Fname The User's Fname is too short (minimum 1 characters)
  Lname The User's Lname is too short (minimum 1 characters)
  </code></pre>
  
  <p>How can I get the field name to not appear first with every error?</p>
  
  <p>In my user model I have:</p>
  
  <p>validates :fname, :length => { :minimum => 1, :maximum => 100 }
    validates :lname, :length => { :minimum => 1, :maximum => 100 }</p>
  
  <p>I can customize those fields with a message attribute. What about email and password which appear to be built into devise? How do I customize those error messages?</p>
  
  <p>Thanks</p>