Hello,
I am building a small test application for learning RoR. I understand
most of what is going on and all my relations is set up correctly.
(tested with console) I can’t figure out when to spilt out models into
separate controllers. Is it overkill to create a controller for each
model? Let me give an example.
Users -> Pos -> Comments
The show post page will display the Post and it’s comments. At the
moment I got a Post controller with CRUD (R both post and comments)
and a Comments controller with CUD. Would it make sense to merge these
two controllers into one controller?
Best regards.
Asbjørn Morell.