Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
ctilley83 opened this Issue · 3 comments

3 participants

@ctilley83

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

@rafaelfranca

How can I reproduce this issue?

@jk779

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

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
Something went wrong with that request. Please try again.