On Wed, July 13, 2011 04:56, Robert Pankowecki wrote:> Is there somewhere a list of names that should not be used as action
> names ?
> I recently created an action named "load" and it disappeared from
> inherited
> controller.
>
> Would such a list be equal to :
> AbstractController::Base.internal_methods ?
>
Well, load is a Ruby instruction. I would steer away from using
things like ''load'', ''require'', etc. for
method names even though
they are not specifically mentioned as reserved. A old list or
reservations can be found here:
http://www.zenspider.com/Languages/Ruby/QuickRef.html#4
or
http://www.java2s.com/Code/Ruby/Language-Basics/Rubysreservedwords.htm
and Rails stuff, also old, can be found here:
http://oldwiki.rubyonrails.org/rails/pages/ReservedWords
--
*** E-Mail is NOT a SECURE channel ***
James B. Byrne mailto:ByrneJB@Harte-Lyne.ca
Harte & Lyne Limited http://www.harte-lyne.ca
9 Brockley Drive vox: +1 905 561 1241
Hamilton, Ontario fax: +1 905 561 0757
Canada L8E 3C3
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.