Files
ch420/config/routes.rb
T

34 lines
1.2 KiB
Ruby
Raw Normal View History

2015-10-02 21:05:03 +02:00
Rails.application.routes.draw do
2017-03-28 01:14:45 +02:00
devise_for :supporters
2017-03-31 14:42:37 +02:00
root to: 'supporters#new'
2016-04-21 21:30:37 +02:00
2017-04-11 08:06:32 +02:00
get "/pages/:page" => "pages#show"
2016-04-21 21:01:26 +02:00
namespace :admin do
get '/map', to: 'pages#map', as: :map
2017-04-14 11:34:01 +02:00
resources :publicities
2016-04-22 11:10:40 +02:00
# resources :supporters, only: :index
2016-04-21 21:01:26 +02:00
end
2017-04-11 08:06:32 +02:00
localized do
get '/initiative_text', to: 'pages#show', as: :initiative_text, page: 'initiative_text'
2017-04-11 08:46:21 +02:00
get '/arguments', to: 'pages#show', as: :arguments, page: 'arguments'
2017-04-11 09:16:29 +02:00
get '/faq', to: 'pages#show', as: :faq, page: 'faq'
2017-04-11 11:24:19 +02:00
get '/terms_and_conditions', to: 'pages#show', as: :terms_and_conditions, page: 'terms_and_conditions'
2017-04-12 22:53:08 +02:00
get '/sponsoring', to: 'pages#show', as: :sponsoring, page: 'sponsoring'
2017-04-17 08:05:51 +02:00
get '/donation', to: 'pages#show', as: :donation, page: 'donation'
2017-04-12 22:53:08 +02:00
get '/numbers', to: 'pages#show', as: :numbers, page: 'numbers'
2017-04-14 12:46:03 +02:00
get '/statements', to: 'pages#show', as: :statements, page: 'statements'
2017-04-11 08:06:32 +02:00
end
2016-04-22 11:10:40 +02:00
2016-04-21 21:29:52 +02:00
get '/cities_autocomplete', to: 'cities_autocomplete#index', as: :cities_autocomplete
2016-04-21 16:53:30 +02:00
scope '/:locale' do
2016-04-21 16:51:35 +02:00
get '/', to: 'supporters#new'
resources :supporters
2017-04-13 17:16:03 +02:00
resource :publicity
2016-04-21 16:51:35 +02:00
get '/thanks', to: 'pages#thanks', as: :thanks
end
2017-04-14 11:34:01 +02:00
mount RailsAdmin::Engine => '/admin', as: 'rails_admin'
2015-10-02 21:05:03 +02:00
end