List of reserved words in rails *3*

Tim Diggins picture Tim Diggins · Dec 3, 2012 · Viewed 20.3k times · Source

Is there a good, authoritative list of reserved words for RAILS-3?

Candidates:

Background: I'm maintaining a long-serving rails app and it has plenty of usages of reserved words (judging that http://oldwiki.rubyonrails.org/rails/pages/ReservedWords seems to apply to rails2). However, none of these are actually interfering with current activity (the app works... and the specs&features I'm slowly adding to all pass). But as time passes I'd like to remove those usages of reserved words, but don't want to bother if some reserved words are no longer really reserved. So while a longer list might be good for NEW rails apps, I need stronger justification for budget spend than "it has been listed on a webpage at somepoint"...)

Maybe the nature of rails is that you can't find an authoritative list, but you can find "things that didn't work for me at some point"....

Answer

Bill Garrison picture Bill Garrison · Mar 5, 2013

This seems like a pretty comprehensive list. However, you are correct. The very nature of programming means that this list will be ever changing. However I will do some research...maybe there is a site that can list reserved words based on the version of Rails you are using. If not...maybe someone should get working on it :D