lib/generators/templates/formtastic.rb in formtastic-2.2.1 vs lib/generators/templates/formtastic.rb in formtastic-2.3.0.rc

- old
+ new

@@ -65,12 +65,12 @@ # You can add custom inputs or override parts of Formtastic by subclassing Formtastic::FormBuilder and # specifying that class here. Defaults to Formtastic::FormBuilder. # Formtastic::Helpers::FormHelper.builder = MyCustomBuilder # You can opt-in to Formtastic's use of the HTML5 `required` attribute on `<input>`, `<select>` -# and `<textarea>` tags by setting this to false (defaults to true). -# Formtastic::FormBuilder.use_required_attribute = true +# and `<textarea>` tags by setting this to true (defaults to false). +# Formtastic::FormBuilder.use_required_attribute = false # You can opt-in to new HTML5 browser validations (for things like email and url inputs) by setting -# this to false. Doing so will add a `novalidate` attribute to the `<form>` tag. +# this to true. Doing so will add a `novalidate` attribute to the `<form>` tag. # See http://diveintohtml5.org/forms.html#validation for more info. # Formtastic::FormBuilder.perform_browser_validations = true