37 lines
1.4 KiB
Ruby
37 lines
1.4 KiB
Ruby
Rails.application.routes.draw do
|
|
devise_for :supporters
|
|
root to: 'supporters#new'
|
|
|
|
get "/pages/:page" => "pages#show"
|
|
|
|
namespace :admin do
|
|
get '/map', to: 'pages#map', as: :map
|
|
resources :publicities
|
|
# resources :supporters, only: :index
|
|
end
|
|
|
|
localized do
|
|
resources :greendays
|
|
get '/initiative_text', to: 'pages#show', as: :initiative_text, page: 'initiative_text'
|
|
get '/arguments', to: 'pages#show', as: :arguments, page: 'arguments'
|
|
get '/faq', to: 'pages#show', as: :faq, page: 'faq'
|
|
get '/terms_and_conditions', to: 'pages#show', as: :terms_and_conditions, page: 'terms_and_conditions'
|
|
get '/sponsoring', to: 'pages#show', as: :sponsoring, page: 'sponsoring'
|
|
get '/donation', to: 'pages#show', as: :donation, page: 'donation'
|
|
get '/numbers', to: 'pages#show', as: :numbers, page: 'numbers'
|
|
get '/collection_concept', to: 'pages#show', as: :collection_concept, page: 'collection_concept'
|
|
get '/statements', to: 'pages#show', as: :statements, page: 'statements'
|
|
end
|
|
|
|
get '/cities_autocomplete', to: 'cities_autocomplete#index', as: :cities_autocomplete
|
|
scope '/:locale', locale: /de|it|fr/ do
|
|
get '/', to: 'supporters#new'
|
|
resources :supporters, only: [:new, :create]
|
|
resource :publicity
|
|
get '/thanks', to: 'pages#thanks', as: :thanks
|
|
resources :charges
|
|
end
|
|
|
|
mount RailsAdmin::Engine => '/admin', as: 'rails_admin'
|
|
end
|