This project is archived and is in readonly mode.
form_for helper don't accept 'format' option
Reported by Alex Chrome | July 28th, 2010 @ 08:08 AM | in 3.1
form_for helper don't accept 'format' option
ie.
form_for Post.new, :format => :json do
...
end
will be like:
<form method="post" id="new_post" class="new_post" action="/posts">
...
</form>
but should be like:
<form method="post" id="new_post" class="new_post" action="/posts.json">
...
</form>
Comments and changes to this ticket
-
Alex Chrome July 28th, 2010 @ 08:17 AM
- Tag changed from actionpack, actionview, format, form_for to actionpack, actionview, format, form_for, patch
Added patch
-
Sasha Koss July 28th, 2010 @ 08:54 AM
ruby 1.9.2dev (2010-07-11 revision 28618) [x86_64-darwin10.4.0] — tests passed, tested in project, works well
-
José Valim August 2nd, 2010 @ 03:56 PM
- Importance changed from to Low
Patch no longer applies. Could you please rebase? Thanks!
-
José Valim August 2nd, 2010 @ 03:56 PM
- Milestone set to 3.1
Patch no longer applies. Could you please rebase? Thanks!
-
Repository September 1st, 2010 @ 09:15 AM
- State changed from new to resolved
(from [3b6d7f0df881d00d94314b0e3b6f328dbd04d1e6]) Added :format option for form_for helper and spec for this [#5226 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/3b6d7f0df881d00d94314b0e3b6f32... -
Repository September 1st, 2010 @ 09:15 AM
(from [dbf82557e46b748e98a0ab6ed4ab6c823cac4dd2]) Added :format option for form_for helper and spec for this [#5226 state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/dbf82557e46b748e98a0ab6ed4ab6c...
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 5226 form_for helper don't accept 'format' option (from [3b6d7f0df881d00d94314b0e3b6f328dbd04d1e6]) Added :...
- 5226 form_for helper don't accept 'format' option (from [dbf82557e46b748e98a0ab6ed4ab6c823cac4dd2]) Added :...