Jump to content

The ultimate community for Ruby on Rails developers.


[newbie] When do I make new controllers/models?


  • Please log in to reply
No replies to this topic

#1 jackalxm



  • Members
  • 1 posts

Posted 06 June 2014 - 10:54 PM

I've been going through the http://www.railstutorial.org/book by Hartl and learn-rails by Kehoe. Both guide describe the MVC model really well, but I am having trouble understanding when to create new controllers and models and why I need to make new ones.

Throughout the tutorial they would often make new controllers and models. When I am reading through it it seemed to make sense, but when I am now trying to make a web app by myself I suddenly feel extreme lost.

I've read from other sources that when creating controllers and models,it doesn't necessarily mean for every one controller, make one model. This only confuses me more because I've always though of the MVC model as sort of a triplet that works conjunction with one another.

If you can explain the question with examples, that would be really awesome

Also tagged with one or more of these keywords: MVC

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users