Permalink
Browse files

Fixed weblog .js files not rendered (nothing rendered instead...)

  • Loading branch information...
1 parent cb85b28 commit 765b1c1b49766fe23f5bd55b3d47a6d86a874c94 @jbbarth jbbarth committed Feb 1, 2009
Showing with 6 additions and 6 deletions.
  1. +4 −4 config/routes.rb
  2. +2 −2 vendor/plugins/theme_support/lib/theme_controller.rb
View
@@ -158,10 +158,10 @@
map.connect ':controller/:action/:sort/:order'
# theme stuffs ################################################################################
- map.connect 'themes/:theme/images/*filename', :controller => 'theme', :action => 'images'
- map.connect 'themes/:theme/stylesheets/*filename', :controller => 'theme', :action => 'stylesheets'
- map.connect 'themes/:theme/javascripts/*filename', :controller => 'theme', :action => 'javascript'
- map.connect 'themes/*whatever', :controller => 'theme', :action => 'error'
+ #map.connect 'themes/:theme/images/*filename', :controller => 'theme', :action => 'images'
+ #map.connect 'themes/:theme/stylesheets/*filename', :controller => 'theme', :action => 'stylesheets'
+ #map.connect 'themes/:theme/javascripts/*filename', :controller => 'theme', :action => 'javascript'
+ #map.connect 'themes/*whatever', :controller => 'theme', :action => 'error'
# some defaults to move stuff around for 404s #################################################
map.connect 'notfound', :controller => 'application', :action => 'handle_unknown_request'
@@ -1,15 +1,15 @@
# The controller for serving/cacheing theme content...
#
class ThemeController < ActionController::Base
-
+
after_filter :cache_theme_files
def stylesheets
render_theme_item(:stylesheets, params[:filename].join("/"), params[:theme], 'text/css')
end
def javascript
- render_theme_item(:javascript, params[:filename].join("/"), params[:theme], 'text/javascript')
+ render_theme_item(:javascripts, params[:filename].join("/"), params[:theme], 'text/javascript')
end
def images

0 comments on commit 765b1c1

Please sign in to comment.