diff options
author | José Valim <jose.valim@gmail.com> | 2011-11-27 23:59:36 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-11-27 23:59:36 -0800 |
commit | ad5c8b0d5228c32355621162e1be211208ae3f5c (patch) | |
tree | ebcf797affbb51373cd065f26f076e4877e93f8f /actionpack/CHANGELOG.md | |
parent | 5cf56a4e7711b952d86d5c9c563bd05d2313883b (diff) | |
parent | 25592569638689f9d863f21862b1f23b5b390833 (diff) | |
download | rails-ad5c8b0d5228c32355621162e1be211208ae3f5c.tar.gz rails-ad5c8b0d5228c32355621162e1be211208ae3f5c.tar.bz2 rails-ad5c8b0d5228c32355621162e1be211208ae3f5c.zip |
Merge pull request #3776 from nashby/add-namespace-to-form
add namespace options to form_for
Diffstat (limited to 'actionpack/CHANGELOG.md')
-rw-r--r-- | actionpack/CHANGELOG.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/CHANGELOG.md b/actionpack/CHANGELOG.md index fe422f71d5..314aa7181c 100644 --- a/actionpack/CHANGELOG.md +++ b/actionpack/CHANGELOG.md @@ -1,5 +1,15 @@ ## Rails 3.2.0 (unreleased) ## +* You can provide a namespace for your form to ensure uniqueness of id attributes on form elements. + The namespace attribute will be prefixed with underscore on the generate HTML id. *Vasiliy Ermolovich* + + Example: + + <%= form_for(@offer, :namespace => 'namespace') do |f| %> + <%= f.label :version, 'Version' %>: + <%= f.text_field :version %> + <% end %> + * Refactor ActionDispatch::ShowExceptions. Controller is responsible for choice to show exceptions. *Sergey Nartimov* It's possible to override +show_detailed_exceptions?+ in controllers to specify which requests should provide debugging information on errors. |