Can somebody tell me the right way to set/use session variables in a ruby on rails application from scratch. I am not able to set/use a session variable in my controller bet
As a rule of thumb, in rails we create a method in ApplicationController, called current_user In this free RailsCast, you see exactly are you need:
current_user