Hi, Here is the views/articles/show.html.erb file <%= render @article %> <h3>Comments</h3> <div id="comments"> <%= render @article.comments %> </div> <%= link_to "new comment", new_article_comment_path(@article, :format => :js), :remote => true, :id => 'new_comment_link' %> and views/comments/new.js.erb $("<%= escape_javascript render(file: 'comments/new.html.erb') %>").insertAfter('#comments'); $('#new_comment').hide().slideDown(); $('#new_comment_link').hide(); When I am clicking on the *new comment link* from the url - http://localhost:3000/articles/2/ ... I am getting the Jquery code back as show in the url - http://i.imgur.com/uRdWlsr.png You can check the same in Github also - https://github.com/aruprakshit/Blog-app/tree/master/app/views. Could you tell me why the Jquery is not being executed ? -- Posted via http://www.ruby-forum.com/. -- 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+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/a262ea5c381a888d24252825f6a4dded%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.