Ruby on Rails Asset Pipeline Basic Usage


There are two basic ways that the asset pipeline is used:

  1. When running a server in development mode, it automatically pre-processes and prepares your assets on-the-fly.

  2. In production mode, you’ll probably use it to pre-process, versionize, and compress and compile your assets. You can do so by running the following command:

    bundle exec rake assets:precompile