-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no icons in assets/css3buttons with rails 3.1.1 and 1.0.1 Gem Version #23
Comments
I confirm it. I have the same problem. |
+1 this pull fixes it johnrees@46fd008 |
Same problem, please merge 👍 |
Same problem. |
+1 |
@johnres: I tried your branch, but icons are still not showing, so at least it's not working for me (I am just starting out with the asset pipeline, so its very possible I am doing something wrong). With the 1.0.1 release gem the error I see in the log is: Started GET "/css3buttons/icons.png" for 127.0.0.1 at 2011-10-27 09:17:33 -0700 ActionController::RoutingError (No route matches [GET] "/css3buttons/icons.png"): |
Hmm, it's working here, is this how your Gemfile looks?
|
This asset pipeline is giving me a headache! I tried: gem 'css3buttons', :git => 'git://github.com/johnrees/css3buttons_rails_helpers.git', and gem 'css3buttons', :git => 'git://github.com/johnrees/css3buttons_rails_helpers.git', :branch => 'patch-1' And still get no icons. I can see in the log that the asset is being compiled again:
However, the generated css (which includes the css3buttons css) does not correctly reference the image:
I appreciate your help in getting this working. Thanks, Ylan Segal On Oct 27, 2011, at 9:22 AM, John Rees wrote:
|
Are any of your assets precompiled? Try running
Then look at
and see if it has changed
to
A nasty interim solution/hack would be to write
in your application.css You'll grow to love the asset pipeline eventually! |
So… No dice. I had already removed the pre-compiled assets and it's still not working, even though I see form the rails output that the style is being compiled:
The suggested hack does works for now, but I can't figure out what could be causing this problem in my environment. Ylan. On Oct 27, 2011, at 9:49 AM, John Rees wrote:
|
John, I still haven't found a solution to my particular problem, but I found a workaround that I like better: I forked and instead of using asset_path, I am using asset_data_uri to embed the image in the stylesheet itself (which works fine for my purposes since all user's have modern browsers). |
using |
@leflings: thanks! That worked for me too. |
Hi Nic, Thanks for your work! |
With Rails 3.1 you don't need run a generator because of the asset pipeline. Please refer to 'Getting started - Rails 3.1' in the readme.md |
Hi John, you want say that I have to include gem "css3buttons" in my gemfile, and start to styling my links? Thanks for your help |
Ok, |
Started GET "/assets/css3buttons/css3buttons/icons.png" for 127.0.0.1 at 2011-10-12 16:17:38 +0800
Served asset /css3buttons/css3buttons/icons.png - 404 Not Found (50ms)
ActionController::RoutingError (No route matches [GET] "/assets/css3buttons/css3buttons/icons.png"):
The text was updated successfully, but these errors were encountered: