Further on migrating my ancient 1.8.6 Rails 2.3.2 app from Windows to Linux
Mint, whatever I do, I keep getting the same error pertaining to "* 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."* This is true if I run
run ruby script/server, or rake rails:update. However, in my
config/environent.rb, I already have this statement the error is telling me
I needed (in fact, it was commented out, but uncommenting it changes
nothing for me, I keep getting the same error whenever I go to run
something here). Anyone have an idea where else I can look here? Thaks, RVic
* 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'
from
/home/user/.rvm/gems/ruby-1.8.6-p420/gems/actionpack-2.3.2/lib/action_controller/middleware_stack.rb:72:in
`new'
from
/home/user/.rvm/gems/ruby-1.8.6-p420/gems/actionpack-2.3.2/lib/action_controller/middleware_stack.rb:72:in
`build'
from
/home/user/.rvm/gems/ruby-1.8.6-p420/gems/actionpack-2.3.2/lib/action_controller/middleware_stack.rb:116:in
`build'
from
/home/user/.rvm/gems/ruby-1.8.6-p420/gems/activesupport-2.3.2/lib/active_support/inflector.rb:361:in
`inject'
from
/home/user/.rvm/gems/ruby-1.8.6-p420/gems/actionpack-2.3.2/lib/action_controller/middleware_stack.rb:116:in
`each'
from
/home/user/.rvm/gems/ruby-1.8.6-p420/gems/actionpack-2.3.2/lib/action_controller/middleware_stack.rb:116:in
`inject'
from
/home/user/.rvm/gems/ruby-1.8.6-p420/gems/actionpack-2.3.2/lib/action_controller/middleware_stack.rb:116:in
`build'
... 8 levels...
from ./script/../config/boot.rb:11:in `boot!'
from ./script/../config/boot.rb:110
from script/server:2:in `require'
from script/server:2
*
--
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/bf32ee3f-2dce-48c6-84fd-a2ce265086d1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.