Skip to content

Commit

Permalink
Fixed weblog .js files not rendered (nothing rendered instead...)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbbarth committed Feb 1, 2009
1 parent cb85b28 commit 765b1c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions config/routes.rb
Expand Up @@ -158,10 +158,10 @@
map.connect ':controller/:action/:sort/:order' map.connect ':controller/:action/:sort/:order'


# theme stuffs ################################################################################ # theme stuffs ################################################################################
map.connect 'themes/:theme/images/*filename', :controller => 'theme', :action => 'images' #map.connect 'themes/:theme/images/*filename', :controller => 'theme', :action => 'images'
map.connect 'themes/:theme/stylesheets/*filename', :controller => 'theme', :action => 'stylesheets' #map.connect 'themes/:theme/stylesheets/*filename', :controller => 'theme', :action => 'stylesheets'
map.connect 'themes/:theme/javascripts/*filename', :controller => 'theme', :action => 'javascript' #map.connect 'themes/:theme/javascripts/*filename', :controller => 'theme', :action => 'javascript'
map.connect 'themes/*whatever', :controller => 'theme', :action => 'error' #map.connect 'themes/*whatever', :controller => 'theme', :action => 'error'


# some defaults to move stuff around for 404s ################################################# # some defaults to move stuff around for 404s #################################################
map.connect 'notfound', :controller => 'application', :action => 'handle_unknown_request' map.connect 'notfound', :controller => 'application', :action => 'handle_unknown_request'
Expand Down
4 changes: 2 additions & 2 deletions vendor/plugins/theme_support/lib/theme_controller.rb
@@ -1,15 +1,15 @@
# The controller for serving/cacheing theme content... # The controller for serving/cacheing theme content...
# #
class ThemeController < ActionController::Base class ThemeController < ActionController::Base

after_filter :cache_theme_files after_filter :cache_theme_files


def stylesheets def stylesheets
render_theme_item(:stylesheets, params[:filename].join("/"), params[:theme], 'text/css') render_theme_item(:stylesheets, params[:filename].join("/"), params[:theme], 'text/css')
end end


def javascript 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 end


def images def images
Expand Down

0 comments on commit 765b1c1

Please sign in to comment.