Created
January 24, 2009 05:01
-
-
Save Gregg/51341 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Combining all your javascripts in production mode | |
<%= javascript_include_tag :all, :cache => true %> | |
<%= javascript_include_tag :all, :cache => "main" %> | |
<%= javascript_include_tag "product", "cart", "checkout", :cache => "shop" %> | |
# Same sort of stuff with stylesheets | |
<%= stylesheet_link_tag :all, :cache => true %> | |
# Declaring an asset host | |
ActionController::Base.asset_host = "assets.example.com" | |
# What uses the asset host url | |
<%= image_tag 'title.gif' %> | |
<%= javascript_include_tag :all %> | |
<%= stylesheet_link_tag :all %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment