I have the following code:
validates_length_of :city, :within => 1…30, :message
=> “Your city can’t be blank”
But the error message keeps showing the default message “City
is too short (minimum is 1 characters)”. It works fine if I set
:too_short and :too_long but that’s extra coding (I’m picky with
Any idea why this might be?