class User < ActiveRecord::Base
validates_presence_of :email
validates_format_of :email ,:with=>/something/
end
if my email field is blank then i am getting 2 error messages
but i want only one that should be first one (here it is presence)
any idea?
--
Posted via http://www.ruby-forum.com/.