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.
精彩评论