Skip to content

Instantly share code, notes, and snippets.

@gabriel-dehan
Created December 10, 2014 16:55
Show Gist options
  • Save gabriel-dehan/023702821bbdfe8015de to your computer and use it in GitHub Desktop.
Save gabriel-dehan/023702821bbdfe8015de to your computer and use it in GitHub Desktop.
fdsfsd
li.post.postWeb class="post-#{post.id}"
- post_url = "#{post.created_at.strftime('%d-%m-%Y')}/post-#{post.id}"
- preload = true if @preload_post && @preload_post == post.id
== link_to ' ', post_by_date_path(post.created_at.strftime('%d-%m-%Y'), post.id), :"data-hash" => post_url, :"data-track-name" => post.title, class: 'clickableTrack', data: { preload: preload }, remote: true
li.post.postWeb class="post-#{post.id}"
- post_url = "#{post.created_at.strftime('%d-%m-%Y')}/post-#{post.id}"
- preload = true if @preoload_post && @preload_post == post.id
== link_to ' ', post_by_date_path(post.created_at.strftime('%d-%m-%Y'), post.id), :"data-hash" => post_url, :"data-track-name" => post.title, class: 'clickableTrack', remote: true
Copy link

ghost commented Dec 10, 2014

<3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment