Top "Sprockets" questions

Sprockets is a Ruby library that preprocesses and concatenates JavaScript and CSS source files.

Why does stylesheet_link_tag not link to /assets in production?

I just did the first deploy for a new Rails 3.1 application, but the assets don't seem to work correctly. I'm …

ruby-on-rails asset-pipeline sprockets
Rails 4 assets not found in production (digest path is OK)

I have problem with assets in production. I can't load stylesheets, javascripts or even images. When I try to access …

ruby-on-rails assets sprockets digest
require_tree argument must be a directory in a Rails 5 upgraded app

I just upgraded my app from Rails 4.2.7 to Rails 5.0.0.1. I used RailsDiff to make sure I had everything covered and …

ruby-on-rails asset-pipeline ruby-on-rails-5 sprockets
How to manage Javascript dependencies with Bower in Rails apps?

The Javascript dependencies are growing in my Rails app and it's leading to some problems. For one, with so many …

ruby-on-rails sprockets bower
How can I get the Rails asset pipeline to produce source maps?

I'd like to have Rails produce source maps alongside the compiled coffeescript/minified JS, for better error logging. There doesn't …

javascript ruby-on-rails heroku asset-pipeline sprockets
How to manage CSS Stylesheet Assets in Rails 3.1?

I'm just learning the new asset pipeline in Rails 3.1. One particular problem I'm having is with the way Sprockets just …

ruby-on-rails sass ruby-on-rails-3.1 sprockets
Disable Sprockets asset caching in development

I'm using Rails 3.2.13 and the Rails Asset Pipeline. I want to use the Asset Pipeline so I can use SASS …

ruby-on-rails ruby asset-pipeline rack sprockets
Sprockets::CircularDependencyError in Store#index

I am following the manual Agile Web Development with Rails 4th edition and I have a problem with sprocket css …

ruby-on-rails ruby sprockets
Rails 3.1 is very slow in development-mode because of assets, what to do?

After I added Sprockets, Rails is loading very slow in development mode, what should I do to speed it up?

ruby-on-rails ruby-on-rails-3.1 sprockets
Rails 4: How to add external javascript file from other site in a specific page

I am using turbolink (rails4) and following js link gets generated by application.js file in my pages header section &…

javascript ruby-on-rails asset-pipeline ruby-on-rails-4 sprockets