Forum: Ruby on Rails Question regarding screencast "Creating a weblog in 15 minutes with Rails 2"

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
60a3df689ea2a20d11d3986e02f9b7d1?d=identicon&s=25 Javier_CH (Guest)
on 2009-01-14 18:22
(Received via mailing list)
Probably all of you have seen the new 15-minute-screencast-wonder over
at rubyonrails.com:

"Creating a weblog in 15 minutes with Rails 2"
http://rubyonrails.org/screencasts

It squeezes tons of know-how in 15 minutes and shows how to setup a
weblog in rails2 in a restful way.

My question on that screencast-setup:

In the screencast, the comment-form is inside a post-view. Now let's
assume the comment-model as shown on the screencast would have
validations.

How would your create-action in the comments-controller look like in
case there would be a validation error and you wanted to return that
error to the form?

This case isn't handled in the screencast and I'm really wondering how
to solve that in a restful way.

Saludos
Javier
This topic is locked and can not be replied to.