开发者

Is model a reserved keyword in rails?

开发者 https://www.devze.com 2023-03-27 13:49 出处:网络
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)

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)

开发者_如何学Go

Thanks!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消