Browse files

Improve documentation for required fields behavior. Closes #559

  • Loading branch information...
1 parent 2db8286 commit d38575f3f3685244f7cfc89aaa46ba3df9ea7c8e @britto britto committed Jun 27, 2012
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



Plataformatec member

lol rainbows

Please sign in to comment.