Michael Jubin wrote: > I am new to RoR. I am running Linux Red Hat Enterprise with MySQL for > my db, and when I go and either create/update the database I get this > message: > > ActionController::InvalidAuthenticityToken in Test1Controller#create(or > update) > ActionController::InvalidAuthenticityToken > > I can destroy any of the items in the db, just can not create or update. > The answer is probably simple, but I just have not found it yet...if > more information is needed please let me know.
I added the lines :only => [:update, :delete, :create] after protect_from_forgery and things worked. I'm on rails 2.3+ -- Posted via http://www.ruby-forum.com/.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.