This project is archived and is in readonly mode.

#6228 ✓ resolved
2kan

Added disable_authenticity_token option to form helper

Reported by 2kan | December 27th, 2010 @ 04:09 PM | in 3.1

I've added disable_authenticity_token option to the form helper. So now we can generate forms without authenticity_token tag.
It is useful when we generate forms for some external resources like payments and billings where names of fields are often restricted so forms with authenticity_token are not valid.

Now we can write:

form_for(@survey, :disable_authenticity_token => true)

or:

form_tag('/', :disable_authenticity_token => true)

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 »

Tickets have moved to Github

The new ticket tracker is available at https://github.com/rails/rails/issues

Shared Ticket Bins

Referenced by

Pages