This project is archived and is in readonly mode.

#5226 ✓resolved
Alex Chrome

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

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>

Attachments

Referenced by

Pages