Skip to content
Browse files

Merge pull request #519 from mcbsys/patch-1

Enhance description of config.error_method.
  • Loading branch information...
2 parents dbd8038 + cbf3259 commit 5de46d3197cbb2737da88d7b12dbe8c93046353e @rafaelfranca rafaelfranca committed Mar 16, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/generators/simple_form/templates/config/initializers/simple_form.rb.tt
View
4 lib/generators/simple_form/templates/config/initializers/simple_form.rb.tt
@@ -100,7 +100,9 @@ SimpleForm.setup do |config|
# Default class for buttons
config.button_class = 'btn'
- # Method used to tidy up errors.
+ # Method used to tidy up errors. Specify any Rails Array method.
+ # :first lists the first message for each field.
+ # Use :to_sentence to list all errors for each field.
# config.error_method = :first
# Default tag used for error notification helper.

0 comments on commit 5de46d3

Please sign in to comment.
Something went wrong with that request. Please try again.