Search code examples
ruby-on-railsactiverecord

model names that causing errors in ruby on rails


It seems to me that it is possible to break ruby on rails such that neither scaffolding works anymore nor database migration when particular model names are used.

In particular I noticed this when using "Dispatcher" for a model to be created via scaffold. If I created the same object with a different name everything works fine.

Has anybody made similar experiences, or is there a list of names not to be used?

Thanks


Solution

  • Official list of reserved words in Rails: http://wiki.rubyonrails.org/rails/pages/reservedwords

    "dispatcher" is listed under "Other Names Reported to Have Caused Trouble"