【发布时间】:2013-09-07 07:29:18
【问题描述】:
我收到以下错误
我用几个字段创建了一个新的脚手架投标
当我尝试访问 localhost:3000/bids/new 时
我收到以下错误
ActiveRecord::DangerousAttributeError in BidsController#new
save is defined by ActiveRecord
在服务器端我看到了这个结果:
Started GET "/bids/new" for 127.0.0.1 at 2013-09-07 12:52:43 +0530
Processing by BidsController#new as HTML
Refinery::Role Load (0.4ms) SELECT "refinery_roles".* FROM "refinery_roles" WHERE "refinery_roles"."title" = 'Refinery' LIMIT 1
Refinery::User Load (0.3ms) SELECT "refinery_users".* FROM "refinery_users" INNER JOIN "refinery_roles_users" ON "refinery_users"."id" = "refinery_roles_users"."user_id" WHERE "refinery_roles_users"."role_id" = 1
Completed 500 Internal Server Error in 779ms
ActiveRecord::DangerousAttributeError (save is defined by ActiveRecord):
app/controllers/bids_controller.rb:27:in `new'
app/controllers/bids_controller.rb:27:in `new'
我缺少什么或者是安装在 / 是最重要的功能?
请帮帮我
【问题讨论】:
-
我可以看看你在投标模型中定义的属性。
标签: ruby-on-rails activerecord refinerycms