Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 760
txwikinger Avatar asked Apr 18 '26 01:04

txwikinger


1 Answers

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"

like image 120
Al. Avatar answered Apr 20 '26 18:04

Al.