Skip to content

Instantly share code, notes, and snippets.

@Znow
Created March 24, 2012 18:00
Show Gist options
  • Save Znow/2185673 to your computer and use it in GitHub Desktop.
Save Znow/2185673 to your computer and use it in GitHub Desktop.
config/locales/views/contact/
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
config.i18n.default_locale = :da
da:
contact_us: Kontakt os
location: Vores beliggenhed
helpers:
label:
post:
name: Navn
email: Email
message: Besked
#same path as above
en:
contact_us: Contact us
location: Our Location
helpers:
label:
post:
name: Name
email: Email
message: Message
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