#41 new
Mike Boone

Error messages for should_protect_attributes

Reported by Mike Boone | June 24th, 2008 @ 05:00 PM

http://github.com/thoughtbot/sho...

I don't think this error message code is right. It looks like it would work if 'protected' contained all of the attributes that 'accessible' did not, but in Rails 2.0.2, it does not appear that they are set this way.

If you use only attr_accessible, then 'accessible' will have values, and 'protected' will be nil. And vice versa using attr_protected.

I haven't come up with a patch yet. Is there a way to write tests to test the expected shoulda error messages?

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket