SUMMARY
A plugin for replace rails pipline.
Getting Started
- adding gem to Gemfile
gem 'zfben_rails_assets'
- update bundle
bundle install
- add .gitignore
public/assets
How to Use
Configuration
# config/application.rb
config.assets.enabled = false
config.action_controller.asset_host = 'http://assets.abc.com'
config.action_controller.asset_path = 'assets'
config.action_controller.asset_version = '1'
Helper
assets('blank.css') #=> <link rel="stylesheet" href="/assets/blank.css" />
assets('blank.js') #=> <script src="/assets/blank.js"></script>