GitHub Account angelegt

This commit is contained in:
Andreas Stephanides
2013-02-12 02:05:12 +01:00
commit 3d11400d5e
216 changed files with 5031 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
module ApplicationHelper
def current_url(overwrite={})
url_for :only_path => true, :params => params.merge(overwrite).except(:controller,:action)
end
def switch_locale_url(target_locale)
current_url({:locale=>target_locale}) .sub "/"+I18n.locale.to_s+"/", "/"+target_locale.to_s+"/"
end
end