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

Apache NiFi ExecuteScript: Groovy script to replace Json values via a mapping file -

python 3.x - PyQt5 - Signal : pyqtSignal no method connect -