Names of models that cause ruby ​​errors on rails

It seems to me that it is possible to break rubies into rails so that neither scaffolding nor database migration can work anymore using specific model names.

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

Has anyone done similar events, or is there a list of names that will not be used?

thanks

+3
source share
2 answers

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

"" " , , "

, :)

+7

- , Rails ActionController - Rails.

Rails:

>> Dispatcher
=> ActionController::Dispatcher

Dispatcher, , , , , Rails.

+2

Source: https://habr.com/ru/post/1715182/


All Articles