Hi,
I''m trying out the new features in Rails 2.3.0 RC1. Especially
interested in the new "Nested Forms" functionality. I''m
having a
problem when installing gems into my project. When adding a gem (e.g.
"mislav-will_paginate") to the "config/environment.rb" and
running:
rake gems:install
I get the following error.
==========================================rake aborted!
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
(See full trace by running task with --trace)
==========================================
Is anybody out there having this problem?
In Rails edge the environment.rb no longer has the session key, all
that has been changed and moved to a separate initializer. One thing I
discovered is that the error only happens for gems that are not
already installed in the local gems repo.
Thx,
--Alex
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
Have the vey same problem. No clue yet on how to solve it --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
This has been filed as #1750 on the Lighthouse for a bit (http:// rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1750). Can you give the patch I posted (towards the bottom of the ticket) a try? --Matt Jones On Feb 15, 10:13 am, ARod <datawarr...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m trying out the new features in Rails 2.3.0 RC1. Especially > interested in the new "Nested Forms" functionality. I''m having a > problem when installing gems into my project. When adding a gem (e.g. > "mislav-will_paginate") to the "config/environment.rb" and running: > > rake gems:install > > I get the following error. > > ==========================================> rake aborted! > 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 > > (See full trace by running task with --trace) > ==========================================> > Is anybody out there having this problem? > > In Rails edge the environment.rb no longer has the session key, all > that has been changed and moved to a separate initializer. One thing I > discovered is that the error only happens for gems that are not > already installed in the local gems repo. > > Thx, > > --Alex--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---