<% remote_form_for(:comment, :url => blog_post_comments_path) do |form| %>

<fieldset>
  <legend>Nowy komentarz</legend>
  <%= form.text_area :body, :rows => 10, :cols => 40 %>
  <%= submit_tag "Utwrz" %>
  <%= button_to_function "Anuluj" do |page|
        page.visual_effect :blind_up, "new_comment_form_for_post_#{@post.id}" 
        page.show "add_comment_link_for_post_#{@post.id}" 
      end 
  %>
</fieldset>
<% end %>

