Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is model a reserved keyword in rails?

Does anyone know if defining a rails model called "model" can be an issue?

The link that was given in a previous question seems to be broken (http://wiki.rubyonrails.org/rails/pages/ReservedWords)

Thanks!

like image 232
RaySF Avatar asked Aug 12 '11 16:08

RaySF


1 Answers

I found these links:

http://oldwiki.rubyonrails.org/rails/pages/ReservedWords

http://www.yup.com/articles/2007/01/31/no-reservations-about-keywords-in-ruby-on-rails

And some others that weren't as good, and none of them state Model is a keyword.

I also just tried it out. All I did was make a scaffold and then tried out actions on the website, and everything went fine.

like image 183
MrDanA Avatar answered Oct 01 '22 08:10

MrDanA