From 1d40c2ee5996fd5d0510b532cc1d218d2045e7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Muhammet=20DI=CC=87LEK?= Date: Sun, 9 Mar 2014 12:07:21 +0200 Subject: [PATCH] routes fixed for rails4 --- lib/themes_for_rails/routes.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/themes_for_rails/routes.rb b/lib/themes_for_rails/routes.rb index d52301b..263e466 100644 --- a/lib/themes_for_rails/routes.rb +++ b/lib/themes_for_rails/routes.rb @@ -6,11 +6,11 @@ def themes_for_rails theme_dir = ThemesForRails.config.themes_routes_dir constraints = { :theme => /[\w\.]*/ } - match "#{theme_dir}/:theme/stylesheets/*asset" => 'themes_for_rails/assets#stylesheets', + match "#{theme_dir}/:theme/stylesheets/*asset" => 'themes_for_rails/assets#stylesheets', :via => [:get], :as => :base_theme_stylesheet, :constraints => constraints - match "#{theme_dir}/:theme/javascripts/*asset" => 'themes_for_rails/assets#javascripts', + match "#{theme_dir}/:theme/javascripts/*asset" => 'themes_for_rails/assets#javascripts', :via => [:get], :as => :base_theme_javascript, :constraints => constraints - match "#{theme_dir}/:theme/images/*asset" => 'themes_for_rails/assets#images', + match "#{theme_dir}/:theme/images/*asset" => 'themes_for_rails/assets#images', :via => [:get], :as => :base_theme_image, :constraints => constraints end