Hi!

I'm working on my first Rails (2.3.5) app and I'm experimenting with
activating the Active Record Store after running into the 4K limit of
the Cookie Store (I don't really know how I ended up filling the cookie
store, I didn't put that much in there!).

I didn't do much:

1) rake db:sessions:create
2) rake db:migrate

=> Sessions table got created

3) added "config.action_controller.session_store = :active_record_store"
to environment.rb

And now I can't even start Mongrel!

"2540"
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://127.0.0.1:3000
F:/Programming/Ruby/Ruby186/lib/ruby/gems/1.8/gems/actionpack-2.3.5/lib/action_controller/middleware_stack.rb:98:in
`insert_after': You have a nil object when you didn't expect it!
(NoMethodError)
You might have expected an instance of Array.
The error occurred while evaluating nil.+

Also, if I try to run a rake task, such as a db:migrate, I get a similar
error:

>rake db:migrate 
(in F:/Programming/Ruby/Workspace/shareyourstyle)
rake aborted!
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.+

If I disable the line in environment.rb, everything is back to normal...

Any idea what is going on? Those errors message are really not doing
much for me :(

Thanks for your help!

Guillaume
-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to