module AuthsHelper
  def current_user
    if session[:id]
      @current_user ||= User.find(session[:id])
    end
  end

  def logged_in?
    !current_user.nil?
  end
end

module AuthsHelper
  def current_user
    if session[:user_id]
      @current_user ||= User.find_by_id(session[:user_id])
    end
  end

  def logged_in?
    !current_user.nil?
  end
end

--- 
+++ 
@@ -1,7 +1,7 @@
 module AuthsHelper
   def current_user
-    if session[:user_id]
-      @current_user ||= User.find_by_id(session[:user_id])
+    if session[:id]
+      @current_user ||= User.find(session[:id])
     end
   end
 
Fix session user id param.
