Not sure if anyone else has had this problem. I was running on merb edge fine a few days ago. Last night I went to merb 0.4.0 via gem install and now any call to session[:foo] causes an error >> undefined method ''[]'' for nil:NilClass I have uninstalled and reinstalled merb with no luck. dependencies.rb use_orm :activerecord merb.yml :session_store: active_record Gems merb 0.4.0 merb_activerecord 0.4.2 Mac OSX Any help appreciated.
A few things are different with how you configure sessions in Merb 0.4.0. Try changing :session_store: active_record to :sql_session: true Hope this helps Jonathan ---- http://www.jaikoo.com On 7 Nov 2007, at 12:22, frazer horn wrote:> Not sure if anyone else has had this problem. > > I was running on merb edge fine a few days ago. Last night I went to > merb 0.4.0 via gem install and now any call to session[:foo] causes an > error >> undefined method ''[]'' for nil:NilClass > > I have uninstalled and reinstalled merb with no luck. > > dependencies.rb > use_orm :activerecord > > merb.yml > :session_store: active_record > > Gems > merb 0.4.0 > merb_activerecord 0.4.2 > > Mac OSX > > Any help appreciated. > _______________________________________________ > Merb-devel mailing list > Merb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/merb-devel
On Nov 7, 2007, at 6:22 AM, frazer horn wrote:> I was running on merb edge fine a few days ago. Last night I went to > merb 0.4.0 via gem install and now any call to session[:foo] causes an > error >> undefined method ''[]'' for nil:NilClass > > I have uninstalled and reinstalled merb with no luck.I just installed merb and merb_activerecord from gems, created a new app, turned on AR sessions, did the migration, and sessions work. So to figure out why they don''t work in your app, gonna need to see more info. Can you reply with relevant chunks of your merb.yml, dependencies.rb, schema.rb, controller, etc? Also, do you have merb_activerecord installed? The name changed from merb_active_record to merb_activerecord right before 0.4.0 released.