Secret Token Error in Rails App -


i'm running error on new rails app , has me bit confused. can start rails server , load index page fine, when try load other page get

arguemnterror: secret required generate integrity hash cookie session data. use config.secret_token = "some secret phrase of @ least 30 characters"in config/initializers/secret_token.rb

now makes strange have verified indeed have .secret file. modified secret_token.rb file generate random .secret file per mike hartl tutorial. have checked .secret file indeed exist. in fact, deleted , restarted server make sure generate new one, , did. contents of .secret file indeed contain string of greater 30 characters. , yet getting error. i'm not sure i'm missing here.

i did googling , appears felt error related race condition caused accessing site after starting server. restarted server, waiting 5 minutes, , accessed site. same issue. @ loss understand why getting error. appreciated.

i had switch last line of secret_token.rb from:

sampleapp::application.config.secret_key_base = secure_token 

to:

todo::application.config.secret_token = secure_token 

took reading error message on , on though.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -