Asset pipeline Configuration for Rails 4. Can someone explain why my Rails 4 has no sprocket-rails gem?

Dan Rubio

I've read on the ruby on rails guide, that the asset pipeline is a thing of the past and that starting with rails 4, assets will be handled by the sprockets-rails gem. That's great and all but here's my problem. This is the internals of a rails app I've made.

gem 'rails', '4.1.0'

# Use sqlite3 as the database for Active Record
gem 'sqlite3'

# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'

# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer',  platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'

# Turbolinks makes following links in your web application faster. Read more:    
https://github.com/rails/turbolinks
gem 'turbolinks'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'

# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0',          group: :doc

# Spring speeds up development by keeping your application running in the background.     
Read more: https://github.com/rails/spring
gem 'spring',        group: :development

As you can see, I'm using rails 4.1 but there is no sprocket-rails gem. I'm just curious why this is. Everything works fine but I'd like to know. Thanks.

Kirti Thorat

sprocket-rails gem is one of the runtime dependencies of rails gem. You can check it on RubyGems site: Rails Runtime Dependencies

This means that when you run bundle install command, bundler not only installs the gems listed in Gemfile but it also fetches all remote sources, resolves dependencies and installs all needed gems.

Bottom-line is that bundler will take care of the runtime dependencies, you can even check those in your Gemfile.lock(Just search for rails (4.1.0) in the Gemfile.lock).

Refer to the documentation of bundle-install command (mainly DESCRIPTION section)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Prevent Rails 4 Sprocket Asset Pipeline from caching a specific file

From Dev

rails 4 asset pipeline image subdirectories

From Dev

Rails 4 asset pipeline losing vendor assets

From Dev

Syntax of IF statement Rails 4 with Asset Pipeline

From Dev

Rails 4, Asset Compiling

From Dev

Ckeditor Rails Sprocket Absolute Asset Path Error

From Dev

Rails 4 Auditing Gem

From Dev

Are there similar gem for Rails 4?

From Dev

Rails 4: Masonry gem

From Dev

What are best practices organizing css for the Asset Pipeline in Rails 4

From Dev

Static 404 page Rails 4: how to use the asset pipeline?

From Dev

How to reset Heroku Rails4 asset pipeline cache

From Dev

rails 4 asset pipeline assets.rb refactor issue

From Dev

Rails 4 Asset Pipeline: Compile both with and without fingerprint

From Dev

How to render an image in rails 4 that is not part of asset pipeline

From Dev

rails 4 asset_pipeline : Include whole folder for vendor/assets

From Dev

rails 4 asset_pipeline : Include whole folder for vendor/assets

From Dev

Rails 4 Heroku Assets not loading, though in heroku asset pipeline

From Dev

Rails 4 with asset_sync

From Dev

Rails 4 Asset Pipeline: Asset missing fingerprint in asset_path from js

From Dev

Rails4 Sprockets; Asset logical path has no extension

From Dev

fullcalendar-rails gem in rails 4

From Dev

Rails 4 asset pipeline doesn't overwrite assets with asset_path references to other assets

From Dev

Use gem as library in Rails 4

From Dev

How to use has_scope gem in a view in rails 4?

From Dev

Where to place my environment dependent gem config in Rails 4?

From Dev

How can I ensure a reserved word will not conflict with Ruby, Rails 4, or a gem in my gemlist

From Dev

Add a new folder to asset path in rails 4

From Dev

Disable Asset logging in Rails 4 + unicorn + foreman

Related Related

  1. 1

    Prevent Rails 4 Sprocket Asset Pipeline from caching a specific file

  2. 2

    rails 4 asset pipeline image subdirectories

  3. 3

    Rails 4 asset pipeline losing vendor assets

  4. 4

    Syntax of IF statement Rails 4 with Asset Pipeline

  5. 5

    Rails 4, Asset Compiling

  6. 6

    Ckeditor Rails Sprocket Absolute Asset Path Error

  7. 7

    Rails 4 Auditing Gem

  8. 8

    Are there similar gem for Rails 4?

  9. 9

    Rails 4: Masonry gem

  10. 10

    What are best practices organizing css for the Asset Pipeline in Rails 4

  11. 11

    Static 404 page Rails 4: how to use the asset pipeline?

  12. 12

    How to reset Heroku Rails4 asset pipeline cache

  13. 13

    rails 4 asset pipeline assets.rb refactor issue

  14. 14

    Rails 4 Asset Pipeline: Compile both with and without fingerprint

  15. 15

    How to render an image in rails 4 that is not part of asset pipeline

  16. 16

    rails 4 asset_pipeline : Include whole folder for vendor/assets

  17. 17

    rails 4 asset_pipeline : Include whole folder for vendor/assets

  18. 18

    Rails 4 Heroku Assets not loading, though in heroku asset pipeline

  19. 19

    Rails 4 with asset_sync

  20. 20

    Rails 4 Asset Pipeline: Asset missing fingerprint in asset_path from js

  21. 21

    Rails4 Sprockets; Asset logical path has no extension

  22. 22

    fullcalendar-rails gem in rails 4

  23. 23

    Rails 4 asset pipeline doesn't overwrite assets with asset_path references to other assets

  24. 24

    Use gem as library in Rails 4

  25. 25

    How to use has_scope gem in a view in rails 4?

  26. 26

    Where to place my environment dependent gem config in Rails 4?

  27. 27

    How can I ensure a reserved word will not conflict with Ruby, Rails 4, or a gem in my gemlist

  28. 28

    Add a new folder to asset path in rails 4

  29. 29

    Disable Asset logging in Rails 4 + unicorn + foreman

HotTag

Archive