开发者

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)

开发者_如何学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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜