same here. I've added that line in app controller but error is still on my page :
edit:
solved - just add that lines: private
def current_user
@current_user ||= User.find(session[:user_id]) if session[:user_id]
end
to the app/helpers/application_helper.rb ;)
if still it is not working add
include ApplicationHelper
to your ApplicationController ;)same here. I've added that line in app controller but error is still on my page :
edit:
solved - just add that lines:
private
def current_user
@current_user ||= User.find(session[:user_id]) if session[:user_id]
end
to the
app/helpers/application_helper.rb
;)