title: validates associated with model's error message
body: <p>I have two model as follows</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
   validates_associated :account
  end
  
  class Account &lt; ActiveRecord::Base
  
    belongs_to :user
  
    #----------------------------------Validations--Start-------------------------
    validates_length_of :unique_url, :within =&gt; 2..30 ,:message =&gt; "Should be atleast 3 characters long!"
    validates_uniqueness_of :unique_url ,:message =&gt; "Already Taken"
    validates_format_of :unique_url,:with =&gt; /^([a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])$/ , :message =&gt; " Cannot contain special charaters"
    #----------------------------------Validations--End---------------------------
  end
  </code></pre>
  
  <p>Now when I associate an account to a user it says </p>
  
  <blockquote>
    <p>"Account is invalid"</p>
  </blockquote>
  
  <p>Instead I want to get the error message directly from that model.
  so it should say </p>
  
  <p><code>"Should be atleast 3 characters long!"</code> or <code>"Already Taken"</code> or <code>" Cannot contain special charaters"</code></p>
  
  <p>is there a way to do this ?</p>
  
  <p>I don't want to give a generic message like :</p>
  
  <pre><code>validates_associated :account , :message=&gt;"one of the three validations failed"
  </code></pre>