thetron / css3buttons_rails_helpers

Rails helpers to generate beautiful css3 buttons, based on the 'css3-github-buttons'
http://nicolasgallagher.com/lab/css3-github-buttons/
MIT License
311 stars 29 forks source link

Incorrect path to icon image #12

Closed ejunker closed 13 years ago

ejunker commented 13 years ago

I created a button using add_button_link_to and the button was there but the icon was not showing. Using the web inspector in Chrome I found that it was trying to load the icon image from http://localhost:3000/stylesheets/css3buttons/gh-icons.png yet that file does not exist at that location.

In the CSS I found that it specifies:

background: url(gh-icons.png) 0 99px no-repeat;

I had to modify it to use the correct path and filename.

background: url(/images/css3buttons/css3-github-buttons-icons.png) 0 99px no-repeat;

Sorry I didn't submit a pull request; I'm not very good with Git yet.

thetron commented 13 years ago

Thanks ejunker! No worries on the pull request. I'll make sure this all gets fixed as part of our Rails 3.1 asset pipeline updates.