-
Notifications
You must be signed in to change notification settings - Fork 403
Common Gotchas
jpmcgrath edited this page Dec 12, 2011
·
8 revisions
It may sound obvious, but "form_for :validate => true" is different from "form_for :validate => :true" (note the symbol instead of true).
This is because when you pass a symbol to :validate it will assign the script to content_for so you can render the script tag elsewhere. (See https://github.com/bcardarella/client_side_validations/issues/98)
If you accidentally use :true instead of true, the following error will be displayed in your browser's js error console.
"settings is undefined"