title: ruby on rails best_in_place gem field name change on error display
body: <p>So i have setup the <strong>best_in_place</strong> gem<a href="https://github.com/bernat/best_in_place" rel="nofollow"> [https://github.com/bernat/best_in_place]</a> but i am facing a little problem when my column i try to edit looks like <code>title_name</code> and when an error occurs it shows it like</p>
  
  <pre><code>'title_name can't be blank,is too short (minimum is 1 characters)'
  </code></pre>
  
  <p>I would like to edit the way the gem handles the error display so it will replace the <code>_</code> with <code>space</code> and maybe make it a little <code>user-friendly</code></p>
  
  <p><strong>EDIT:</strong></p>
  
  <p><strong>checking the response</strong> i get via <strong>Firebug</strong> is:</p>
  
  <pre><code>{"title_name":["can't be blank","is too short (minimum is 1 characters)"]}
  </code></pre>
  
  <p><strong>where in the gem demo</strong> <a href="http://bipapp.heroku.com/users/59" rel="nofollow">http://bipapp.heroku.com/users/59</a></p>
  
  <pre><code>["Last name has invalid length","Last name can't be blank"]
  </code></pre>
  
  <p>which is a bit different...</p>
  
  <p><strong>EDIT2:</strong></p>
  
  <p><strong>post.rb</strong></p>
  
  <pre><code>class Post &lt; ActiveRecord::Base
    attr_accessible :post_id, :title_name, :total_items, :user_id
  
    validates :title_name, :presence =&gt; true, :length =&gt; { :in =&gt; 1..50 }
  
    belongs_to :user, :foreign_key =&gt; 'post_id'
  
    self.primary_key = :post_id
  
    def to_param
      "#{post_id}"
    end
  end
  </code></pre>