Do you prefer attr_protected or attr_accessible?

I used to only use attr_accessible, but usually my model only has one 
field to be protected, so it becomes a pain to write:

object.attr1 = ...
object.attr2 = ...
etc

I am considering the use of attr_protected with tests to make sure that 
the protected attributes are indeed protected.

Did anyone do the jump? Will it fire back at me?

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to