inboxes icon indicating copy to clipboard operation
inboxes copied to clipboard

ActiveModel::MassAssignmentSecurity::Error in Inboxes::DiscussionsController#create

Open xxxazxxx opened this issue 14 years ago • 5 comments

ActiveModel::MassAssignmentSecurity::Error in Inboxes::DiscussionsController#create

Can't mass-assign protected attributes: discussion, user, updated_at

Which model do i edit?

xxxazxxx avatar Oct 31 '12 19:10 xxxazxxx

I think you should add to speaker.rb the following

attr_accessible :discussion, :user, :updated_at, :user_id

ilyacherevkov avatar Nov 24 '12 00:11 ilyacherevkov

@blackbumer could you please send this commit as a pull request?

kirs avatar Mar 12 '13 08:03 kirs

It is fixed by pull request https://github.com/evrone/inboxes/pull/23

isqad avatar Mar 13 '13 06:03 isqad

So can we close it?

kirs avatar Mar 13 '13 07:03 kirs

I think it can be closed

isqad avatar Mar 13 '13 09:03 isqad