ruby on rails - Using a single large controller or multiple controllers -


rails 3.2 ruby 2.1.5 

i working on application create tickets (service orders). ticket going have number of sections. rather create single large controller, better if had multiple controllers/models, 1 each section of ticket, , have single view display sections in single form?

i have views/tickets/shared set of views (one each section), , main view, render each needed inside div in main view.

you should use multiple controller application until know controller object start violate single responsibility principle, making future changes code base difficult , error-prone.


Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo