there are 2 ways to write validations in RoR3.
validates_length_of :name, :minimum => 5
validates :name, :length => { :minimum => 5 }
both will give the same.
i wonder where i can read more about the latter one. all the options for it.
cause the http://guides.rails.info/activerecord_validations_callbacks.html just mention the first type.
the latter one is better for validating by field and not by validation type.
then you can have all validations for one field in one row.
thanks