So I''ll preface with: I am very new to Ruby and Rails. I''m using the 2006 Lynda guide to Rails, and I just setup a simple scaffold based on a simple database, and when I try to "create", I get this: ActionController::InvalidAuthenticityToken I''m not sure what the error means or how to correct it. I would appriciate any help. Also, if scaffolding has been removed from Rails 2.0, has something replaced it? Or is that more advanced and I should wait till I learn more? Thanks, Rohit -- 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
My guess is that your 2006 guide is not up to speed with your version of Rails... Check your environment.rb for info on how 2.0 looks to do sessions... cookie session data is the default if I recall correctly. When trying to use the db for session data, I was frequently getting MySQL Lost Connections. Haven''t seen one since moving to 2.0 and using the cookie store. Active Scaffolding is available as a plugin I think, but 2.0 leans toward ruby script/generate scaffold modelname field1:type field2:type etc... for the simplest example (creates the controller, model, views as static files you can edit to your hearts content). -- 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---