Sha256: 5c61d0da7ee65069e0ab8eeba7cbbb28bf8415e37b2c674b52a3d811a81b6f45
Contents?: true
Size: 660 Bytes
Versions: 3
Compression:
Stored size: 660 Bytes
Contents
ActionController::Routing::Routes.draw do |map| [:javascripts, :stylesheets].each do |type| map.send(type, "#{type}/:path.:format", { :controller => "engine_assets/#{type}", :action => :show, :path => /[A-Za-z0-9\/._-]+?/ # e.g., javascripts/path/file.js }) end end # TODO: consider the following for Rails 3 (the abover works for now): # Rails.application.routes.draw do |map| # [:javascripts, :stylesheets].each do |type| # match "#{type}/:path" => "engine_assets/#{type}#show", # :as => type, # :constraints => { # :path => /[A-Za-z0-9\/._-]+\.(css|js)$/ # } # end # end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
engine-assets-0.6.0.pre1 | config/routes.rb |
engine-assets-0.5.1 | config/routes.rb |
engine-assets-0.5.0 | config/routes.rb |