On 28 October 2013 21:46, Ralph Vince <[email protected]> wrote: > > Colin, I made the changes you said to make here (I did, well before, do rake > db:sessions:create and have the table resident in the db). I;ve lso tried > using :session_key in instead of :key.....noe of which seems to be affecting > it: > > > ruby script/server > /home/user/.rvm/gems/ruby-1.8.6-p420/gems/actionpack-2.3.2/lib/action_controller/session/cookie_store.rb:163:in > `ensure_session_key': A key is required to write a cookie containing the > session data. Use config.action_controller.session = { :key => > "_myapp_session", :secret => "some secret phrase" } in config/environment.rb > (ArgumentError) > from > /home/user/.rvm/gems/ruby-1.8.6-p420/gems/actionpack-2.3.2/lib/action_controller/session/cookie_store.rb:74:in > `initialize'
It is very odd, firstly it should not be using the cookie store, and if it were then you have provided the session key. I have tried it and it works for me with either :key or :session_key, and if I enable the active_record_store then it does not ask in the first place. Can you post development.rb please. Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLvZjFMekMG4rUgbJ7d4XetrAfDcNodHcEeSD7LprdsC9A%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.

