Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/brentgreeff/better_error_message
- Owner: brentgreeff
- License: mit
- Created: 2009-07-15T23:57:37.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-01-13T10:20:12.000Z (almost 14 years ago)
- Last Synced: 2024-03-15T06:46:46.694Z (8 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: 3
- 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