yourtape/app/controllers/application_controller.rb
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
# protect_from_forgery with: :exception
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 current_user
    V::User.first
  end
def current_user V :: User . first end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .
# User.find_by_id(session[:current_user_id]) # User.first # User.second