Created
March 24, 2012 18:00
-
-
Save Znow/2185673 to your computer and use it in GitHub Desktop.
config/locales/views/contact/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')] | |
config.i18n.default_locale = :da |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
da: | |
contact_us: Kontakt os | |
location: Vores beliggenhed | |
helpers: | |
label: | |
post: | |
name: Navn | |
email: Email | |
message: Besked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#same path as above | |
en: | |
contact_us: Contact us | |
location: Our Location | |
helpers: | |
label: | |
post: | |
name: Name | |
email: Email | |
message: Message |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Advicecapital::Application.routes.draw do | |
scope "(:locale)", :locale => /da|en/ do | |
devise_for :users#, :path_prefix => 'd' | |
resources :news | |
resources :boards | |
resources :videos | |
resources :employees | |
resources :recipients | |
namespace :admin do | |
root :to => 'dashboard#index' | |
resources :advice_pages | |
resources :boxes, :only => [:index, :show, :edit, :update] | |
resources :investors | |
resources :stocks | |
resources :users | |
resources :company_stocks, :only => [:edit, :update, :show] | |
resources :investor_profiles | |
end | |
match '/contact' => 'contact#new', :as => 'contact', :via => :get | |
match '/contact' => 'contact#create', :as => 'contact', :via => :post | |
match '/:locale' => 'pages#index' | |
root :to => "pages#index" | |
match '/receive_news', :to => 'recipients#new' | |
match '/disclaimer', :to => 'pages#disclaimer' | |
match '/privacy', :to => 'pages#privacy' | |
match '/organisation', :to => 'employees#index' | |
mount Resque::Server, :at => "/resque" | |
match '/*slugs', :to => 'pages#show' | |
# AdvicePage.all.each do |r| | |
# match r.slug, :to => "pages#show" | |
# end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment