AutoCommit Don Jul 9 17:03:04 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-07-09 17:03:04 +02:00
parent fe32c2102b
commit b399a961a3
2 changed files with 3 additions and 2 deletions

View File

@@ -95,6 +95,7 @@ class HomeController < ApplicationController
end end
end end
def language def language
redirect_to request.referer || root_path
end end
def choose_contact_topics def choose_contact_topics
authorize! :doadmin, User authorize! :doadmin, User

View File

@@ -39,8 +39,8 @@ m.save
def switch_locale_url(target_locale) def switch_locale_url(target_locale)
current_url1({:locale=>target_locale}) .sub "/"+I18n.locale.to_s+"/", "/"+target_locale.to_s+"/" # current_url1({:locale=>target_locale}) .sub "/"+I18n.locale.to_s+"/", "/"+target_locale.to_s+"/"
language_path(locale: target_locale)
end end
def ffi1_icon (name) def ffi1_icon (name)
content_tag("i","", class: "ffi1-"+name ) content_tag("i","", class: "ffi1-"+name )