Skip to content

Instantly share code, notes, and snippets.

@px-amaac
Last active December 16, 2015 02:18
Show Gist options
  • Save px-amaac/5361012 to your computer and use it in GitHub Desktop.
Save px-amaac/5361012 to your computer and use it in GitHub Desktop.
How to i get to this syntax from Rails.??
<ul class="clearing-thumbs" data-clearing>
<li><a href="path/to/your/img"><img data-caption="caption here..." src="path/to/your/img-th"></a></li>
<li><a href="path/to/your/img"><img data-caption="caption 2 here..." src="path/to/your/img-th"></a></li>
<li><a href="path/to/your/img"><img data-caption="caption 3 here..." src="path/to/your/img-th"></a></li>
</ul>
<%= link_to '#' do %>
hiii <%= image_tag('/images/menu-arrow-down.gif') %>
<% end %>
<%= link_to '#' %><%= image_tag('/images/menu-arrow-down.gif') %>
<%= link_to image_tag ('/images/menu-arrow-down.gif') '#' %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment