Added remote is true to stream partials, no more redirecting

This commit is contained in:
Raphael 2010-07-02 15:36:07 -07:00
parent cae4f832cf
commit fffd3aebfc
3 changed files with 3 additions and 3 deletions

View file

@ -14,4 +14,4 @@
- if mine?(post)
.destroy_link
= link_to 'Delete', blog_path(post), :confirm => 'Are you sure?', :method => :delete
= link_to 'Delete', blog_path(post), :confirm => 'Are you sure?', :method => :delete, :remote=> true

View file

@ -15,4 +15,4 @@
- if mine?(post)
.destroy_link
= link_to 'Delete', bookmark_path(post), :confirm => 'Are you sure?', :method => :delete
= link_to 'Delete', bookmark_path(post), :confirm => 'Are you sure?', :method => :delete, :remote => true

View file

@ -11,4 +11,4 @@
- if mine?(post)
.destroy_link
= link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete
= link_to 'Delete', status_message_path(post), :confirm => 'Are you sure?', :method => :delete, :remote => true