Permalink
Browse files

data push attribute

  • Loading branch information...
1 parent 8d8a9f8 commit c5f2df35bf3d4ab855d3bcbfda800ce92545f81d @barthezslavik committed Dec 22, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/samples/index.html.haml
@@ -1,7 +1,7 @@
- @samples.each do |sample|
- %h2= link_to sample.name, sample
- %p= sample.description
+ %p= link_to sample.name, sample, data:{ push: true }
/= link_to 'Edit', edit_sample_path(sample)
/= link_to 'Destroy', sample, :confirm => 'Are you sure?', :method => :delete
+%br
= link_to 'Add Sample', new_sample_path

0 comments on commit c5f2df3

Please sign in to comment.