开发者

Basic question about MVC in Ruby on Rails

I'm having a bit of trouble understanding the implementation of MVC in Ruby on Rails. Am I supposed to put the bulk of my code in the mode开发者_运维问答ls, using the controllers to link them to the views? Do I use redirect_to to move between different controllers when necessary?


You put your logic into the models. If needed, use redirect. But you use that often for POST answers, other use cases are not that common.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜