solution. I have a simple post/comments relationship that fits the
basic blog model. That means that the form to create a new comment is
in the show action in the Posts controller, but the form links to the
create action in the Comments controller. My question is basically: is
this the best way to model that relationship? The problem I'm running
into is that when posting a comment fails due to missing fields, you
can't easily "render :action => 'new'" to retain the values while
displaying an error message.
What am I missing?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment