Skip to content

Instantly share code, notes, and snippets.

@jlittlejohn
Created June 10, 2013 19:37
Show Gist options
  • Save jlittlejohn/5751570 to your computer and use it in GitHub Desktop.
Save jlittlejohn/5751570 to your computer and use it in GitHub Desktop.
RoR: Add Image Link with Attributes
=link_to image_tag("image.png", :alt => 'The Alt Tag'), 'http://google.com', :title => 'Title'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment