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: 4 days ago
JSON representation
Better error messages for rails forms, replacement for error_message_on
- Host: GitHub
- URL: https://github.com/brentgreeff/better_error_message
- Owner: brentgreeff
- License: mit
- Created: 2009-07-15T23:57:37.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2011-01-13T10:20:12.000Z (almost 15 years ago)
- Last Synced: 2025-07-05T20:19:19.779Z (4 months ago)
- Topics: form-helper, rails
- Language: Ruby
- Homepage: http://www.brentgreeff.com/rails-plugins/better-error-message
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rdoc
- License: MIT-LICENSE
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