forked from errriclee/validates_multiparameter_assignments
-
Notifications
You must be signed in to change notification settings - Fork 0
validates_multiparameter_assignments with Rails 2.3 deprecation fix
License
joenio/validates_multiparameter_assignments
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
* validates_multiparameter_assignments plugin A Ruby on Rails plugin that adds "validates_multiparameter_assignments" method to ActiveRecord::Base. Example: class User < ActiveRecord::Base validates_multiparameter_assignments end This makes multiparameter assignment errors to be added to the model, rather than raising ActiveRecord::MultiparameterAssignmentErrors. By default the error message is read from ActiveRecord::Base.default_error_messages[:invalid]. You can change the message by adding an option like this: validates_multiparameter_assignments :message => " is not entered correctly." This plugin is especially useful when you use date_select helper method in the view, where the user can enter invalid dates such as "Feb 31, 2006". - Shinya Kasatani <kasatani at gmail.com>
About
validates_multiparameter_assignments with Rails 2.3 deprecation fix
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Ruby 100.0%