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

java - Cannot send AES encrypted messages of over 47 characters -

php - How to set default value of a select dynamically from database using smarty? -

telerik - Reformat image format in PDF -