title: wicked_pdf_stylesheet_link_tag 'application' throwing 404 error
body: <p>I've encountered a strange error using wicked_pdf.</p>
  
  <p>I've never had the same issue on my mac,
  but on my production centos 6.6 vps, it throws <strong>404 error</strong> on the line:</p>
  
  <pre><code>wicked_pdf_stylesheet_link_tag 'application' 
  </code></pre>
  
  <p>I'm using </p>
  
  <pre><code>gem 'rails', '4.1.6'
  gem 'wkhtmltopdf-binary'
  gem 'wicked_pdf', '~&gt; 0.11.0'
  </code></pre>
  
  <p>I've tried to add <code>application.css.scss</code> or <code>application.css</code> into <code>initializer/assets.rb</code></p>
  
  <pre><code>Rails.application.config.assets.version = '1.1'
  # Precompile additional assets.
  # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
  # Rails.application.config.assets.precompile += %w( search.js )
  
  Rails.application.config.assets.precompile += %w(*.svg *.eot *.woff *.ttf *.gif *.png *.ico)
  Rails.application.config.assets.precompile += %w(application.css *.js *.css *.js.coffee)
  </code></pre>
  
  <p>but still does not work,</p>
  
  <p>Anyone have any clue what can be done?</p>
  
  <p>On my ubuntu 14 server used as development machine,</p>
  
  <pre><code>wicked_pdf_image_tag object.file1.file.path 
  </code></pre>
  
  <p>seems to cause the pdf generator to hang.</p>
  
  <p>I've  commented off it, it works. And I've checked that the path is correct.</p>
  
  <p>The problem will also persists with image_tag helper, but works fine when displayed in html format.</p>
  
  <p><strong>full trace showing:</strong></p>
  
  <blockquote>
    <p>/usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/open-uri.rb:353:in
    <code>open_http'
    /usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/open-uri.rb:724:in
    </code>buffer_open'
    /usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/open-uri.rb:210:in
    <code>block in open_loop'
    /usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/open-uri.rb:208:in
    </code>catch'
    /usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/open-uri.rb:208:in
    <code>open_loop'
    /usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/open-uri.rb:149:in
    </code>open_uri'
    /usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/open-uri.rb:704:in
    <code>open'
    /usr/local/rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/open-uri.rb:34:in
    </code>open' wicked_pdf (0.11.0) lib/wicked_pdf/wicked_pdf_helper.rb:111:in
    <code>read_from_uri' wicked_pdf (0.11.0)
    lib/wicked_pdf/wicked_pdf_helper.rb:100:in</code>read_asset' wicked_pdf
    (0.11.0) lib/wicked_pdf/wicked_pdf_helper.rb:40:in <code>block in
    wicked_pdf_stylesheet_link_tag' wicked_pdf (0.11.0)
    lib/wicked_pdf/wicked_pdf_helper.rb:38:in</code>collect' wicked_pdf
    (0.11.0) lib/wicked_pdf/wicked_pdf_helper.rb:38:in
    <code>wicked_pdf_stylesheet_link_tag' app/views/layouts/pdf.html.slim:5:in
    </code>_app_views_layouts_pdf_html_slim___1321156534865974876_43089880'
    actionview (4.1.6) lib/action_view/template.rb:145:in <code>block in
    render' activesupport (4.1.6)
    lib/active_support/notifications.rb:161:in</code>instrument' actionview
    (4.1.6) lib/action_view/template.rb:339:in <code>instrument' actionview
    (4.1.6) lib/action_view/template.rb:143:in</code>render' actionview (4.1.6)
    lib/action_view/renderer/template_renderer.rb:67:in
    <code>render_with_layout' actionview (4.1.6)
    lib/action_view/renderer/template_renderer.rb:53:in</code>render_template'
    actionview (4.1.6) lib/action_view/renderer/template_renderer.rb:17:in
    <code>render' actionview (4.1.6) lib/action_view/renderer/renderer.rb:42:in
    </code>render_template' actionview (4.1.6)
    lib/action_view/renderer/renderer.rb:23:in <code>render' actionview (4.1.6)
    lib/action_view/rendering.rb:99:in</code>_render_template' actionpack
    (4.1.6) lib/action_controller/metal/streaming.rb:217:in
    <code>_render_template' actionview (4.1.6)
    lib/action_view/rendering.rb:82:in</code>render_to_body' actionpack (4.1.6)
    lib/action_controller/metal/rendering.rb:32:in <code>render_to_body'
    actionpack (4.1.6) lib/action_controller/metal/renderers.rb:32:in
    </code>render_to_body' actionpack (4.1.6)
    lib/abstract_controller/rendering.rb:43:in <code>render_to_string'
    actionpack (4.1.6) lib/action_controller/metal/rendering.rb:21:in
    </code>render_to_string' wicked_pdf (0.11.0)
    lib/wicked_pdf/pdf_helper.rb:34:in <code>render_to_string_with_wicked_pdf'
    wicked_pdf (0.11.0) lib/wicked_pdf/pdf_helper.rb:61:in</code>make_pdf'
    wicked_pdf (0.11.0) lib/wicked_pdf/pdf_helper.rb:32:in
    <code>render_to_string_with_wicked_pdf'
    app/controllers/concerns/has_pdf_response.rb:15:in</code>respond_to_pdf'
    app/controllers/quotations_controller.rb:23:in <code>block (2 levels) in
    show' actionpack (4.1.6)
    lib/action_controller/metal/mime_responds.rb:258:in</code>call' actionpack
    (4.1.6) lib/action_controller/metal/mime_responds.rb:258:in
    <code>respond_to' app/controllers/quotations_controller.rb:20:in</code>show'
    actionpack (4.1.6) lib/action_controller/metal/implicit_render.rb:4:in
    <code>send_action' actionpack (4.1.6)
    lib/abstract_controller/base.rb:189:in</code>process_action' actionpack
    (4.1.6) lib/action_controller/metal/rendering.rb:10:in
    <code>process_action' actionpack (4.1.6)
    lib/abstract_controller/callbacks.rb:20:in</code>block in process_action'
    activesupport (4.1.6) lib/active_support/callbacks.rb:113:in <code>call'
    activesupport (4.1.6) lib/active_support/callbacks.rb:113:in</code>call'
    activesupport (4.1.6) lib/active_support/callbacks.rb:166:in <code>block in
    halting' activesupport (4.1.6) lib/active_support/callbacks.rb:166:in
    </code>call' activesupport (4.1.6) lib/active_support/callbacks.rb:166:in
    <code>block in halting' activesupport (4.1.6)
    lib/active_support/callbacks.rb:149:in</code>call' activesupport (4.1.6)
    lib/active_support/callbacks.rb:149:in <code>block in
    halting_and_conditional' activesupport (4.1.6)
    lib/active_support/callbacks.rb:229:in</code>call' activesupport (4.1.6)
    lib/active_support/callbacks.rb:229:in <code>block in halting'
    activesupport (4.1.6) lib/active_support/callbacks.rb:229:in</code>call'
    activesupport (4.1.6) lib/active_support/callbacks.rb:229:in <code>block in
    halting' activesupport (4.1.6) lib/active_support/callbacks.rb:166:in
    </code>call' activesupport (4.1.6) lib/active_support/callbacks.rb:166:in
    <code>block in halting' activesupport (4.1.6)
    lib/active_support/callbacks.rb:166:in</code>call' activesupport (4.1.6)
    lib/active_support/callbacks.rb:166:in <code>block in halting'
    activesupport (4.1.6) lib/active_support/callbacks.rb:166:in</code>call'
    activesupport (4.1.6) lib/active_support/callbacks.rb:166:in <code>block in
    halting' activesupport (4.1.6) lib/active_support/callbacks.rb:229:in
    </code>call' activesupport (4.1.6) lib/active_support/callbacks.rb:229:in
    <code>block in halting' activesupport (4.1.6)
    lib/active_support/callbacks.rb:166:in</code>call' activesupport (4.1.6)
    lib/active_support/callbacks.rb:166:in <code>block in halting'
    activesupport (4.1.6) lib/active_support/callbacks.rb:166:in</code>call'
    activesupport (4.1.6) lib/active_support/callbacks.rb:166:in <code>block in
    halting' activesupport (4.1.6) lib/active_support/callbacks.rb:229:in
    </code>call' activesupport (4.1.6) lib/active_support/callbacks.rb:229:in
    <code>block in halting' activesupport (4.1.6)
    lib/active_support/callbacks.rb:166:in</code>call' activesupport (4.1.6)
    lib/active_support/callbacks.rb:166:in <code>block in halting'
    activesupport (4.1.6) lib/active_support/callbacks.rb:166:in</code>call'
    activesupport (4.1.6) lib/active_support/callbacks.rb:166:in <code>block in
    halting' activesupport (4.1.6) lib/active_support/callbacks.rb:166:in
    </code>call' activesupport (4.1.6) lib/active_support/callbacks.rb:166:in
    <code>block in halting' activesupport (4.1.6)
    lib/active_support/callbacks.rb:166:in</code>call' activesupport (4.1.6)
    lib/active_support/callbacks.rb:166:in <code>block in halting'
    activesupport (4.1.6) lib/active_support/callbacks.rb:86:in</code>call'
    activesupport (4.1.6) lib/active_support/callbacks.rb:86:in
    <code>run_callbacks' actionpack (4.1.6)
    lib/abstract_controller/callbacks.rb:19:in</code>process_action' actionpack
    (4.1.6) lib/action_controller/metal/rescue.rb:29:in <code>process_action'
    actionpack (4.1.6)
    lib/action_controller/metal/instrumentation.rb:31:in</code>block in
    process_action' activesupport (4.1.6)
    lib/active_support/notifications.rb:159:in <code>block in instrument'
    activesupport (4.1.6)
    lib/active_support/notifications/instrumenter.rb:20:in</code>instrument'
    activesupport (4.1.6) lib/active_support/notifications.rb:159:in
    <code>instrument' actionpack (4.1.6)
    lib/action_controller/metal/instrumentation.rb:30:in</code>process_action'
    actionpack (4.1.6)
    lib/action_controller/metal/params_wrapper.rb:250:in <code>process_action'
    activerecord (4.1.6)
    lib/active_record/railties/controller_runtime.rb:18:in
    </code>process_action' actionpack (4.1.6)
    lib/abstract_controller/base.rb:136:in <code>process' actionview (4.1.6)
    lib/action_view/rendering.rb:30:in</code>process' actionpack (4.1.6)
    lib/action_controller/metal.rb:196:in <code>dispatch' actionpack (4.1.6)
    lib/action_controller/metal/rack_delegation.rb:13:in</code>dispatch'
    actionpack (4.1.6) lib/action_controller/metal.rb:232:in <code>block in
    action' actionpack (4.1.6)
    lib/action_dispatch/routing/route_set.rb:82:in</code>call' actionpack
    (4.1.6) lib/action_dispatch/routing/route_set.rb:82:in <code>dispatch'
    actionpack (4.1.6) lib/action_dispatch/routing/route_set.rb:50:in
    </code>call' actionpack (4.1.6) lib/action_dispatch/journey/router.rb:73:in
    <code>block in call' actionpack (4.1.6)
    lib/action_dispatch/journey/router.rb:59:in</code>each' actionpack (4.1.6)
    lib/action_dispatch/journey/router.rb:59:in <code>call' actionpack (4.1.6)
    lib/action_dispatch/routing/route_set.rb:678:in</code>call' rack-pjax
    (0.8.0) lib/rack/pjax.rb:12:in <code>call' warden (1.2.3)
    lib/warden/manager.rb:35:in</code>block in call' warden (1.2.3)
    lib/warden/manager.rb:34:in <code>catch' warden (1.2.3)
    lib/warden/manager.rb:34:in</code>call' rack (1.5.2) lib/rack/etag.rb:23:in
    <code>call' rack (1.5.2) lib/rack/conditionalget.rb:25:in</code>call' rack
    (1.5.2) lib/rack/head.rb:11:in <code>call' remotipart (1.2.1)
    lib/remotipart/middleware.rb:27:in</code>call' actionpack (4.1.6)
    lib/action_dispatch/middleware/params_parser.rb:27:in <code>call'
    actionpack (4.1.6) lib/action_dispatch/middleware/flash.rb:254:in
    </code>call' rack (1.5.2) lib/rack/session/abstract/id.rb:225:in <code>context'
    rack (1.5.2) lib/rack/session/abstract/id.rb:220:in</code>call' actionpack
    (4.1.6) lib/action_dispatch/middleware/cookies.rb:560:in <code>call'
    activerecord (4.1.6) lib/active_record/query_cache.rb:36:in</code>call'
    activerecord (4.1.6)
    lib/active_record/connection_adapters/abstract/connection_pool.rb:621:in
    <code>call' actionpack (4.1.6)
    lib/action_dispatch/middleware/callbacks.rb:29:in</code>block in call'
    activesupport (4.1.6) lib/active_support/callbacks.rb:82:in
    <code>run_callbacks' actionpack (4.1.6)
    lib/action_dispatch/middleware/callbacks.rb:27:in</code>call' actionpack
    (4.1.6) lib/action_dispatch/middleware/reloader.rb:73:in <code>call'
    actionpack (4.1.6) lib/action_dispatch/middleware/remote_ip.rb:76:in
    </code>call' actionpack (4.1.6)
    lib/action_dispatch/middleware/debug_exceptions.rb:17:in <code>call'
    actionpack (4.1.6)
    lib/action_dispatch/middleware/show_exceptions.rb:30:in</code>call'
    railties (4.1.6) lib/rails/rack/logger.rb:38:in <code>call_app' railties
    (4.1.6) lib/rails/rack/logger.rb:20:in</code>block in call' activesupport
    (4.1.6) lib/active_support/tagged_logging.rb:68:in <code>block in tagged'
    activesupport (4.1.6) lib/active_support/tagged_logging.rb:26:in
    </code>tagged' activesupport (4.1.6)
    lib/active_support/tagged_logging.rb:68:in <code>tagged' railties (4.1.6)
    lib/rails/rack/logger.rb:20:in</code>call' actionpack (4.1.6)
    lib/action_dispatch/middleware/request_id.rb:21:in <code>call' rack (1.5.2)
    lib/rack/methodoverride.rb:21:in</code>call' rack (1.5.2)
    lib/rack/runtime.rb:17:in <code>call' activesupport (4.1.6)
    lib/active_support/cache/strategy/local_cache_middleware.rb:26:in
    </code>call' rack (1.5.2) lib/rack/lock.rb:17:in <code>call' actionpack (4.1.6)
    lib/action_dispatch/middleware/static.rb:64:in</code>call' rack (1.5.2)
    lib/rack/sendfile.rb:112:in <code>call' railties (4.1.6)
    lib/rails/engine.rb:514:in</code>call' railties (4.1.6)
    lib/rails/application.rb:144:in <code>call' passenger (4.0.56)
    lib/phusion_passenger/rack/thread_handler_extension.rb:74:in
    </code>process_request' passenger (4.0.56)
    lib/phusion_passenger/request_handler/thread_handler.rb:141:in
    <code>accept_and_process_next_request' passenger (4.0.56)
    lib/phusion_passenger/request_handler/thread_handler.rb:109:in
    </code>main_loop' passenger (4.0.56)
    lib/phusion_passenger/request_handler.rb:455:in `block (3 levels) in
    start_threads'</p>
  </blockquote>