[activerecord]what are the reserved attribute names that become protected attributes

I just ran into the concept of protected attributes in ActiveRecord
when I tried to add a field/column with the name ‘type’. Is there any
documentation on the reserved names that are considered protected by
default? I haven’t been able to find anything conclusive.

Thanks.

On Mon, Jul 27, 2009 at 4:46 PM, Nathan B.[email protected] wrote:

I just ran into the concept of protected attributes in ActiveRecord
when I tried to add a field/column with the name ‘type’. Is there any
documentation on the reserved names that are considered protected by
default? I haven’t been able to find anything conclusive.

? googling “rails reserved words” brings this up as #1:

http://wiki.rubyonrails.org/rails/pages/ReservedWords


Hassan S. ------------------------ [email protected]
twitter: @hassan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs