Skip to content

Commit

Permalink
Hopefully done the wrap in controller call correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
goobertron committed Aug 20, 2013
1 parent 79514e3 commit 19cf5ca
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@
devise_for :users

constraints subdomain: /^(|www)$/i do
get 'about' => 'pages#about'
get 'get_involved' => 'pages#get_involved'
get 'tutorials' => 'pages#tutorials'
get 'getting_started1' => 'pages#getting_started1'
get 'getting_started2' => 'pages#getting_started2'
get 'getting_started3' => 'pages#getting_started3'
get 'getting_started4' => 'pages#getting_started4'
get 'getting_started5' => 'pages#getting_started5'
get 'getting_started6' => 'pages#getting_started6'
get 'getting_started7' => 'pages#getting_started7'
get 'formatting' => 'pages#formatting'
get 'tips' => 'pages#tips'
get 'other_docs' => 'pages#other_docs'

controller :pages do
get :about
get :get_involved
get :tutorials
get :getting_started1
get :getting_started2
get :getting_started3
get :getting_started4
get :getting_started5
get :getting_started6
get :getting_started7
get :formatting
get :tips
get :other_docs
end

get 'switch_locale/:locale' => 'i18n#switch_locale', as: :switch_locale

root to: 'pages#index'
Expand Down

0 comments on commit 19cf5ca

Please sign in to comment.