Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No console log errors when attribute is not in attr_accessible list #16

Closed
ctilley83 opened this issue Apr 25, 2013 · 3 comments
Closed

Comments

@ctilley83
Copy link

When submitting a form, submission silently fails. "can't mass-assign protected attributes for Model: attribute" error is not displayed.

@rafaelfranca
Copy link
Member

How can I reproduce this issue?

@jk779
Copy link

jk779 commented Aug 1, 2013

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

@rafaelfranca
Copy link
Member

We will need a way to reproduce the issue. Until we have I'm closing it.

Thank you so much for reporting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants