RailsCasts Pro episodes are now free!

Learn more or hide this

Lukasz's Profile

GitHub User: ofcapl

Site: www.ofcasite.tk

Comments by Lukasz

Avatar

if still it is not working add include ApplicationHelper to your ApplicationController ;)

Avatar

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 ;)