Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

data push attribute

  • Loading branch information...
commit c5f2df35bf3d4ab855d3bcbfda800ce92545f81d 1 parent 8d8a9f8
@barthezslavik authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/samples/index.html.haml
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.