Does it work?

In a nut shell. 
The comment is submitted via JavaScript, aka Ajax, and the controller will do 
what it needs to do. It appears that it will only responded to html not Ajax. 

But if it did. 
It should render the .js.erb and depending on if the comment was saved it will 
append the comment to the page. If it fails the form is displayed. 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to rubyonrails-talk+unsubscr...@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/23dcbb34-8a0b-430f-878d-ba64fdd1dd13%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to