Skip to content

Instantly share code, notes, and snippets.

@PirosB3
Created August 22, 2013 07:45
Show Gist options
  • Save PirosB3/6304237 to your computer and use it in GitHub Desktop.
Save PirosB3/6304237 to your computer and use it in GitHub Desktop.
// create an image tag
var img = document.createElement('img');
// add the source
img.src = <%= image-path("rails.png") %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment