Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Improve documentation for required fields behavior. Closes #559

  • Loading branch information...
commit d38575f3f3685244f7cfc89aaa46ba3df9ea7c8e 1 parent 2db8286
@britto britto authored
Showing with 5 additions and 2 deletions.
  1. +5 −2
@@ -130,8 +130,11 @@ any html attribute to that wrapper as well using the `:wrapper_html` option, lik
<% end %>
-By default all inputs are required, which means an * is prepended to the label, but you can disable
-it in any input you want:
+Required fields are marked with an * prepended to their labels.
+By default all inputs are required. When the form object has `presence` validations attached to its fields, **SimpleForm** tells required and optional fields apart. For performance reasons, this detection is skipped on validations that make use of conditional options, such as `:if` and `:unless`.
+And of course, the `required` property of any input can be overwritten as needed:
<%= simple_form_for @user do |f| %>

2 comments on commit d38575f




lol rainbows

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