Results 1 to 6 of 6
Thread: controller structure
Mar 25, 2008, 14:01 #1
- Join Date
- Jul 2006
- 0 Post(s)
- 0 Thread(s)
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?