class ApplicationController < ActionController::Base
helper :all # include all helpers, all the time
protect_from_forgery # See
ActionController::RequestForgeryProtection for details
session[:current_user_id] = "546"
end
class ApplicationController < ActionController::Base
helper :all # include all helpers, all the time
protect_from_forgery # See
ActionController::RequestForgeryProtection for details
session[:current_user_id] = "546"
end
Really? That's only about 5 lines of code and the error is being
reported on line 10. What's on line 10?
class ApplicationController < ActionController::Base
helper :all # include all helpers, all the time
protect_from_forgery # See
ActionController::RequestForgeryProtection for details
session[:current_user_id] = "546"
This is executing when application controller loads, in the context of
the class, (rather than an individual instance of it) which doesn't
make any sense. If you want to play with the session you need to be
doing so from an instance method of a controller (since session itself
is an instance method of controllers)