Yes. The trouble is that post_comment uses flash to get post_id but
not the comment object. And the get method sets up the flash
accordingly.
It even works in this way:
get "/posts/#{post.id}"
post '/posts/post_comment', :comment => { :comment => "my comment
2" }
because post_id of the comment object is not in use.
I suppose Sang Shin should fix such a problem in the exercise text and
code.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "ruby-on-rails-programming-with-passion" group.
To unsubscribe from this group, send email to
ruby-on-rails-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/ruby-on-rails-programming-with-passion?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---