Skip to content
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

Images in vendor/assets not being included in asset pipeline #1705

Closed
C-Otto opened this issue Jul 3, 2014 · 5 comments
Closed

Images in vendor/assets not being included in asset pipeline #1705

C-Otto opened this issue Jul 3, 2014 · 5 comments
Assignees
Milestone

Comments

@C-Otto
Copy link
Contributor

C-Otto commented Jul 3, 2014

tracks 9a69b17

The "X" image on the upper right part of the popup used to edit recurring todos is not available. According to Firebug, the CSS is:

background: url("images/ui-bg_gloss-wave_60_fece2f_500x100.png") repeat-x scroll 50% 50% #fece2f;

However, this file does not exist (HTTP 404). It only exists in TRACKS_ROOT/vendor/assets/stylesheets/images/.

I run using WEBrick with precompiled assets (according to doc/installation.textile). I edited config/environments/production.rb so that assets are provided (config.serve_static_assets = true). The CSS files and the delete/edit/star icons are served correctly.

@dnrce
Copy link
Member

dnrce commented Jul 3, 2014

What does the WEBrick log show for the 404 error?

@dnrce
Copy link
Member

dnrce commented Jul 3, 2014

(See log/production.log)

@C-Otto
Copy link
Contributor Author

C-Otto commented Jul 3, 2014

I also get similar errors for other images.

I, [2014-07-03T22:52:09.744154 #1693]  INFO -- : Started GET "/assets/images/ui-bg_gloss-wave_60_fece2f_5
00x100.png" for 127.0.0.1 at 2014-07-03 22:52:09 +0200
F, [2014-07-03T22:52:09.745042 #1693] FATAL -- :
ActionController::RoutingError (No route matches [GET] "/assets/images/ui-bg_gloss-wave_60_fece2f_500x100
.png"):
  actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app'
  railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call'
  activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
  activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
  activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged'
  railties (4.1.4) lib/rails/rack/logger.rb:20:in `call'
  actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
  rack (1.5.2) lib/rack/runtime.rb:17:in `call'
  activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
  actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call'
  rack (1.5.2) lib/rack/sendfile.rb:112:in `call'
  railties (4.1.4) lib/rails/engine.rb:514:in `call'
  railties (4.1.4) lib/rails/application.rb:144:in `call'
  rack (1.5.2) lib/rack/lock.rb:17:in `call'
  rack (1.5.2) lib/rack/content_length.rb:14:in `call'
  rack (1.5.2) lib/rack/handler/webrick.rb:60:in `service'
  /usr/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
  /usr/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
  /usr/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'

@dnrce
Copy link
Member

dnrce commented Jul 3, 2014

Yes, I am able to reproduce this. It appears that nothing from vendor/assets/stylesheets/images is available. Either the location isn't being included, or image files aren't being included from that location.

@dnrce
Copy link
Member

dnrce commented Jul 3, 2014

See rails/rails#7968 and ensuing discussion and related tickets.

@dnrce dnrce added this to the 2.3 milestone Jul 3, 2014
@dnrce dnrce changed the title "X" image of popup not available Images in vendor/assets not being included in asset pipeline Jul 3, 2014
@dnrce dnrce closed this as completed in 6503d3a Jul 4, 2014
@dnrce dnrce self-assigned this Jul 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants