Skip to content

Commit

Permalink
Using Rails 2.1 to cache CSS and JS on production.
Browse files Browse the repository at this point in the history
git-svn-id: http://substruct.googlecode.com/svn/trunk/plugins/substruct@136 6a1f77cc-a145-0410-afd8-bd7963fcc59f
  • Loading branch information
subimage committed Aug 18, 2008
1 parent d540dbd commit a5a5b65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/views/layouts/admin.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
h controller.controller_name
end
-%> : Substruct ADMIN</title>
<%= javascript_include_tag :defaults %>
<%= javascript_include_tag 'substruct', 'subModal', :plugin => 'substruct' %>
<%= stylesheet_link_tag 'admin', 'subModal', :plugin => 'substruct' %>
<%= javascript_include_tag :defaults, :cache => 'default' %>
<%= javascript_include_tag 'substruct', 'subModal', :plugin => 'substruct', :cache => 'substruct' %>
<%= stylesheet_link_tag 'admin', 'subModal', :plugin => 'substruct', :cache => 'substruct_admin' %>
<%= yield :header %>
</head>
<body>
Expand Down
6 changes: 3 additions & 3 deletions app/views/layouts/main.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
h controller.controller_name
end
-%> : Substruct</title>
<%= javascript_include_tag :defaults %>
<%= javascript_include_tag 'substruct', 'subModal', :plugin => 'substruct' %>
<%= stylesheet_link_tag 'main', 'subModal', :plugin => 'substruct' %>
<%= javascript_include_tag :defaults, :cache => 'default' %>
<%= javascript_include_tag 'substruct', 'subModal', :plugin => 'substruct', :cache => 'substruct' %>
<%= stylesheet_link_tag 'main', 'subModal', :plugin => 'substruct', :cache => 'substruct' %>
<%= yield :header %>
</head>
<body>
Expand Down

0 comments on commit a5a5b65

Please sign in to comment.