Added remote is true to stream partials, no more redirecting
This commit is contained in:
parent
cae4f832cf
commit
fffd3aebfc
3 changed files with 3 additions and 3 deletions
|
|
@ -14,4 +14,4 @@
|
||||||
|
|
||||||
- if mine?(post)
|
- if mine?(post)
|
||||||
.destroy_link
|
.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
|
||||||
|
|
|
||||||
|
|
@ -15,4 +15,4 @@
|
||||||
|
|
||||||
- if mine?(post)
|
- if mine?(post)
|
||||||
.destroy_link
|
.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
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,4 @@
|
||||||
|
|
||||||
- if mine?(post)
|
- if mine?(post)
|
||||||
.destroy_link
|
.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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue