Created
April 2, 2010 18:19
-
-
Save rbarazi/353497 to your computer and use it in GitHub Desktop.
[Beginning Rails 3] Listing 8-4. The updated new comment template in app/views/comments/new.js.erb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $("<%= escape_javascript render(:file => 'comments/new.html.erb') %>").insertAfter('#comments'); | |
| $('#new_comment').slideDown(); | |
| $('#new_comment_link').hide(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment