As a newcomer to this list and to Rails per se I would like to to
post my silly newbie questions â?? be patient:
- I’m not able to get rid of the welcome-aboard-screen. It says:
- Set up a default route and remove or rename this file
Routes are setup in config/routes.rb.
I’ve done the routing part â?? at least I think I have! Now, as for the
removing or renaming of that file: where on earth is it?!?!
- 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
session[:language] ||= Language.find(1)
Your help is greatly appreciated!