Skip to content

Instantly share code, notes, and snippets.

@mattman
Created February 12, 2009 00:52
Show Gist options
  • Save mattman/62407 to your computer and use it in GitHub Desktop.
Save mattman/62407 to your computer and use it in GitHub Desktop.
#header h2#logo a {
display: block;
width: 159px;
height: 38px;
background-image: url('/images/logo.png');
background-image: url('http://images.foobar.com/images/logo.png');
background-repeat: no-repeat; }
=bgimg_tag(!image)
- if RAILS_ENV == development
:background-image url('/#{!image}')
- else
:background-image url('http://images.foobar.com/#{!image}')
h2#logo a
:display block
:width 159px
:height 38px
+bgimg_tag(images/logo.png)
:background-repeat no-repeat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment