Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/brentgreeff/better_error_message

Better error messages for rails forms, replacement for error_message_on
https://github.com/brentgreeff/better_error_message

form-helper rails

Last synced: about 7 hours ago
JSON representation

Better error messages for rails forms, replacement for error_message_on

Awesome Lists containing this project

README

        

= Better Error Message

Better error message for Ruby on Rails.
Use instead of Rails error_message_on()

== Install

gem install better_error_message

== Example

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 (c) 2009 [Brent Greeff], released under the MIT license