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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -