Validates Multiparameter Assignment plugin
Plugin details
Documentation
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".
Download from http://www.kbmj.com/~shinya/rails/validates_multiparameter_assignments-1.0.zip
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | (0 older versions) | Last edited by: maxim_kulkin, about 1 year ago

