search for: expressionscontroller

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

2006 Jun 21
5
default page and session
...ink I have! Now, as for the removing or renaming of *that* file: where on earth is it?!?! 2. I want to use session[:language] to save the current working language between requests. But whenever I mention the yet unassigned symbol of session Rails throughs an exception: > NoMethodError in ExpressionsController#list > > You have a nil object when you didn''t expect it! > You might have expected an instance of Array. > The error occured while evaluating nil.[] The method causing the error is > def get_language > session[:language] ||= Language.find(1) > end Your help i...