title: Model Validation not working in rails 4
body: <p>I don't know why, but I am stuck with a simple issue. I have a simple User model and I have given a simple validation to one of its field ie., username for presence and its length.</p>
  
  <p>Below is the code:</p>
  
  <p>user.rb</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    validates :username, presence: true, length: { minumum: 3, maximum: 25 }
  end
  </code></pre>
  
  <p>Accordingly, </p>
  
  <pre><code>user = User.new(username: 'hi')
  user.save
  </code></pre>
  
  <p>must fail as the length of the username (i.e., is too short as per the validation given). But in my case it is getting saved without any errors. Currently it is only giving errors when username is blank but not giving errors for min length. Note: I have reload! my rails console </p>