Hello all,
I’m doing something similar to a blog. Each post can have comments.
Should I put the add comment action under the post controller or the
comment controller?
Right now I have it on the comment controller, but I have to pass the
game id into these functions, and it seems kind of backwords. My urls
look like this
/comments/new/4 (to add a new comment to post #4)
Should I have just created a comment model and not a comment
controller?
Thanks!
Sean C. Hess wrote:
Hello all,
I’m doing something similar to a blog. Each post can have comments.
Should I put the add comment action under the post controller or the
comment controller?
Right now I have it on the comment controller, but I have to pass the
game id into these functions, and it seems kind of backwords. My urls
look like this
/comments/new/4 (to add a new comment to post #4)
Should I have just created a comment model and not a comment
controller?
Thanks!
I strictly recommend you to read this tutorial for a better
understanding
Thank you, I’ll do that
On Jul 9, 9:39 pm, Rambo R. [email protected]