Skip to content

Instantly share code, notes, and snippets.

@lucascaton
Created January 31, 2012 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lucascaton/1707977 to your computer and use it in GitHub Desktop.
Save lucascaton/1707977 to your computer and use it in GitHub Desktop.
Rails' pull request
If you pass the attribute with slash ('/favicon.ico'), it will generate:
<link href="/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
But passing the attribute without the slash ('favicon.ico'), it will generate the correct url (with 'asset' part):
<link href="/assets/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment