From d5e0d208846003cf603f18d82a822192d57e2656 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Mon, 9 Mar 2015 17:39:33 +0100 Subject: [PATCH] app controler url parameter --- app/controllers/application_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 7bb662b..3524b1a 100755 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -40,7 +40,7 @@ def get_theme - if params[:theme]== "default" || params[:theme]=="2003" + if params[:theme]== "default" || params[:theme]=="2003" || params[:theme].nil? params[:theme]="blue1" end if ThemesForRails.available_theme_names.include?(params[:theme]) @@ -51,6 +51,6 @@ else end end def default_url_options - {locale: I18n.locale, theme: (theme_name=="blue1") ? "default" : theme_name , ansicht: nil} + {locale: I18n.locale, theme: (theme_name=="blue1") ? nil : theme_name , ansicht: nil} end end