Gem 铁路4.2及;Restforce返回ActiveModel::ForbiddenAttribute错误的Salesforce API
我正在尝试编写一个rails 4.2.0.beta2应用程序,它将允许我们的组织直接与salesforce实例交互 我一直在关注这个非常有用的条目 我快到了,我已经在salesforce中安装了我的应用程序,它似乎正在启动请求。好的,我可以进入登录页面并输入我的信息 但是,我在回调时遇到以下错误Gem 铁路4.2及;Restforce返回ActiveModel::ForbiddenAttribute错误的Salesforce API,gem,salesforce,omniauth,ruby-on-rails-4.2,Gem,Salesforce,Omniauth,Ruby On Rails 4.2,我正在尝试编写一个rails 4.2.0.beta2应用程序,它将允许我们的组织直接与salesforce实例交互 我一直在关注这个非常有用的条目 我快到了,我已经在salesforce中安装了我的应用程序,它似乎正在启动请求。好的,我可以进入登录页面并输入我的信息 但是,我在回调时遇到以下错误 ActiveModel::ForbiddenAttributesError in SessionsController#create ActiveModel::ForbiddenAttributesEr
ActiveModel::ForbiddenAttributesError in SessionsController#create
ActiveModel::ForbiddenAttributesError
enter code hereExtracted source (around line #21):
def sanitize_for_mass_assignment(attributes)
if attributes.respond_to?(:permitted?) && !attributes.permitted?
raise ActiveModel::ForbiddenAttributesError
else
attributes
end
我查看了我的会话控制器,这可能给我带来了一个问题。。。但我不知道发生了什么
有人能看出我哪里出了问题吗
class SessionsController < ApplicationController
def create
user = User.from_omniauth(env["omniauth.auth"])
session[:user_id] = user.id
redirect_to root_url
end
def destroy
session[:user_id] = nil
redirect_to root_url
end
end
class sessioncontroller
已解决与和相关的问题