Sunday 15 July 2012

Is routes in ruby on rails part of controllers for MVC? -


Quick questions about Ruby's MVC architecture I'm going through Heart's tutorial and whenever I'm new If the static page is added, then it will be located in the config folder. The RB file has to be updated. Is the route of controllers of MOC architecture Is RB part? And if yes, then why is not it in the controller folder? Thanks!

In principle theory differs completely from MVC pattern. The route file is specially to route your controllers to some controllers.

You can think of route files as a psuedo-controller, which handles HTTP requests, and which controller uses for that request.

No comments:

Post a Comment