Better error message for Ruby on Rails. Use instead of Rails error_message_on()
gem install better_error_message
better_error_message :dd, @user, :first_name
or
better_error_message :p, @user, [:first_name, :last_name]
-
will return the first error message for the specified field.
Copyright © 2009 [Brent Greeff], released under the MIT license