RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: slbug
@current_user ||= User.find(session[:user_id]) if session[:user_id]
Same stuff as
if @current_user.nil? && session[:user_id] @current_user = User.find(session[:user_id]) end
first one works well under ruby 1.9
The main problem - how can i give a link to a some comment?
Same stuff as
first one works well under ruby 1.9
The main problem - how can i give a link to a some comment?