app/controllers/application_controller.rb
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception.
For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception . For APIs you may want to use : null_session instead .
def session_params
      @current_user = User.find(session[:user_id])
      @course = Course.find(params[:id])      
    end
def session_params @current_user = User . find ( session [ :user_id ] ) @course = Course . find ( params [ :id ] ) end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .