njemanuel01 / Restful-Routes-Rails

0 stars 0 forks source link

Authenticity Tokens #1

Open njemanuel01 opened 9 years ago

njemanuel01 commented 9 years ago

Every time I run a route with a form it says Invalid Authenticity token. Is there a standard way to implement this in forms?

sumeetjain commented 9 years ago

Arg. I forgot this last class too.

You'll need to use this Rails ERB method: http://api.rubyonrails.org/classes/ActionView/Helpers/FormTagHelper.html#method-i-form_tag