search for: chosen_th

Displaying 1 result from an estimated 1 matches for "chosen_th".

2006 Jun 18
2
Why can''t I use a session? (Symbol as array index)
Hi All I can''t for the life of me see what is wrong with this. Maybe it''s cause it''s midnight... I want to put some data in a session and I have some code like this: class ApplicationController < ActionController::Base model :mything def ApplicationController.chosen_thing session[:chosen_thing] ||= MyThing.defaultThing end end So whenever I try to access ApplicationController.mything in one of the controller subclasses I get the error below. Any help much appreciated. Donald TypeError in MainController#index Symbol as array index RAILS_ROOT: /Rails...