Forum: Ruby on Rails Error running gems:install on edge.

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E03296d34d773b918176211fb011e338?d=identicon&s=25 ARod (Guest)
on 2009-02-15 19:50
(Received via mailing list)

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.


64cefc5969da4ae702d86c9f26cb8733?d=identicon&s=25 philippe lachaise (Guest)
on 2009-02-16 21:17
(Received via mailing list)
Have the vey same problem.
No clue yet on how to solve it
6883e5ef03484d4fcef507d7b4f1d243?d=identicon&s=25 Matt Jones (Guest)
on 2009-02-18 02:02
(Received via mailing list)
This has been filed as #1750 on the Lighthouse for a bit (http://
Can you give the patch I posted (towards the bottom of the ticket) a

--Matt Jones
This topic is locked and can not be replied to.