Re: Maintaining association state in views

2009-06-26 Thread John Andersen
Suggestions :) 1) If the user is viewing a post and wish to comment the post, then use a form in the post view and let the post controller ensure that the new comment is added to the post. 2) If the user is viewing all the comments to a post, then use a form in the comment view and let the comme

Maintaining association state in views

2009-06-25 Thread GravyFace
Been a while since I've done some cake (and last app was a time-crunched blur) so thought I'd start fresh, from the beginning, with a more relaxed deadline and get some fundamentals down correctly. Using the blog example, our models look like this: Post hasMany Comment Comment belongsTo Post Le