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 user_params(pre = nil)
    if pre.nil?
      params.require(:user).permit(:name, :email, :password)
    else
      params.require(pre.to_sym).require(:user).permit(:name, :email, :password)
    end
  end
def user_params ( pre = nil ) if pre . nil? params . require ( :user ) . permit ( :name , :email , :password ) else params . require ( pre . to_sym ) . require ( :user ) . permit ( :name , :email , :password ) end end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .
pre
<not_specific>