From 665964bcbba69829a4ff1e7d7bd936f90d49b3f7 Mon Sep 17 00:00:00 2001 From: elijah Date: Sun, 22 Dec 2013 01:45:41 -0800 Subject: locale prefix support: * set locale based on request header * enforce locale path prefix when current locale is not the default * note: don't use root_path anymore, instead use home_path --- core/app/views/common/_home_page_buttons.html.haml | 4 ++-- core/config/routes.rb | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/app/views/common/_home_page_buttons.html.haml b/core/app/views/common/_home_page_buttons.html.haml index 3be12e2..4c3fc5b 100644 --- a/core/app/views/common/_home_page_buttons.html.haml +++ b/core/app/views/common/_home_page_buttons.html.haml @@ -15,8 +15,8 @@ %span.link= link_to(icon('ok-sign', icon_color) + t(:login), login_path, :class => 'btn') %span.info= t(:login_info) .signup.span4 - %span.link= link_to(icon('user', icon_color) + t(:signup), new_user_path, :class => 'btn') + %span.link= link_to(icon('user', icon_color) + t(:signup), signup_path, :class => 'btn') %span.info= t(:signup_info) .help.span4 - %span.link= link_to(icon('question-sign', icon_color) + t(:get_help), "/tickets/new", :class => 'btn') + %span.link= link_to(icon('question-sign', icon_color) + t(:get_help), new_ticket_path, :class => 'btn') %span.info= t(:help_info) diff --git a/core/config/routes.rb b/core/config/routes.rb index 63f644c..1daf9a4 100644 --- a/core/config/routes.rb +++ b/core/config/routes.rb @@ -1,3 +1,2 @@ Rails.application.routes.draw do - root :to => "home#index" end -- cgit v1.2.3