No console log errors when attribute is not in attr_accessible list
ctilley83 opened this issue · comments
When submitting a form, submission silently fails. "can't mass-assign protected attributes for Model: attribute" error is not displayed.
How can I reproduce this issue?
I'm having this Issue too, but in Rspec tests. The mass assigntment silently fails:
class Task < ActiveRecord::Base
attr_protected :user
validates :user, :presence
end
Task.new(user: create(:user)).save!
==>
ActiveRecord::RecordInvalid:
Validation failed: User can't be blank
We will need a way to reproduce the issue. Until we have I'm closing it.
Thank you so much for reporting.