secret given to the #protect_from_forgery call
My code was running fine under Rails 2.0.2. Then I enabled the db based session store by uncommenting this:
config.action_controller.session_store = :active_record_store
in environment.rb.
Anything that used the session after that gave me this error:
No :secret given to the #protect_from_forgery call. Set that or use a session store capable of generating its own keys (Cookie Session Store).
If you have the same problem. Go to application.rb and uncomment the secret then restart.
All better.
-
ivor
-
http://N/A Walther
-
Deus
-
Jesse
-
http://www.comp.nus.edu.sg/~kanmy Min
-
mrx
-
rey
-
Alex
-
thomas
-
rob
-
Eivind
-
http://denacht.blogspot.com Jesse
-
jabi
-
sameer
-
Lo
-
Kent Karlsson
-
http://sumanthtechsavvy.blogspot.com sumanth
-
aaron
-
http://www.anlek.com Anlek
-
Mike
-
http://www.cluefire.com Dan
-
http://rubyassist.com Rup
-
http://gardner-webb.edu Doug
-
Patricio Soto
-
lowell
-
Radu
-
http://www.pd4free.com Sean McGilvray
-
Jose Vicente
-
Michael
-
karthik
-
William Wallace
-
noocx
-
ander
-
Angela
-
Rander
-
http://www.onet.pl Wejder
-
vishal
-
aawilson
-
Robert
-
Guillermo Velasquez
-
nobody
-
endotly
-
sugi
-
Harikrishnan
-
ganesha
-
http://harish-in.blogspot.com Harish
-
wowgoldkk
-
shikher
-
shikher
-
http://recordsresources.com genealogy
-
muthukumar
-
Bk01236


Justin Ball is the CTO for OERGlue.com a new startup trying to make it easy to mashup the web to create authentic learning experiences. He's been a software consultant and entrepreneur in the education space for more than 10 years. In the rare moments when he isn't writing code, talking about code or measuring his code productivity in profanity per hour, you can find him on his bike in the mountains or on the roads surrounding Cache Valley. 









