diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-12-18 20:09:21 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-12-18 20:18:47 +0100 |
commit | a52413ac91bad22de1a25660848f862a0016ba74 (patch) | |
tree | b4991634f1859861b76cdf4e13ff47aaed7fcc70 /actionview | |
parent | 9f0f7ec2223ae60ee6e2eab5bc9f036a480e9f81 (diff) | |
download | rails-a52413ac91bad22de1a25660848f862a0016ba74.tar.gz rails-a52413ac91bad22de1a25660848f862a0016ba74.tar.bz2 rails-a52413ac91bad22de1a25660848f862a0016ba74.zip |
[ci skip] fields don't output ids by default anymore.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/helpers/form_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb index c446e5bc55..ac4b4196cd 100644 --- a/actionview/lib/action_view/helpers/form_helper.rb +++ b/actionview/lib/action_view/helpers/form_helper.rb @@ -988,14 +988,14 @@ module ActionView # <%= fields :comment do |fields| %> # <%= fields.text_field :body %> # <% end %> - # # => <input type="text" name="comment[body] id="comment_body"> + # # => <input type="text" name="comment[body]> # # # Using a model infers the scope and assigns field values: # <%= fields model: Comment.new(body: "full bodied") do |fields| %< # <%= fields.text_field :body %> # <% end %> # # => - # <input type="text" name="comment[body] id="comment_body" value="full bodied"> + # <input type="text" name="comment[body] value="full bodied"> # # # Using +fields+ with +form_with+: # <%= form_with model: @post do |form| %> |