Padrino::Sprockets: Integrate Sprockets with Padrino
Install from RubyGems:
$ gem install padrino-sprockets
Or include it in your project's
Gemfile with Bundler:
gem 'padrino-sprockets', :require => "padrino/sprockets"
Place your assets under these paths:
Regsiter sprockets in your application:
class Redstore < Padrino::Application register Padrino::Sprockets sprockets # :url => 'assets', :root => app.root end
Now you can access the assets as follows:
For more documentation about sprockets, please check Sprockets
:root => 'asset root' # default is app.root :url => 'assets' # default map url, location, default is 'assets'