diff --git a/app/views/layouts/_dmponline_footer.html.erb b/app/views/layouts/_dmponline_footer.html.erb index 4ce4a31..9a21582 100644 --- a/app/views/layouts/_dmponline_footer.html.erb +++ b/app/views/layouts/_dmponline_footer.html.erb @@ -3,9 +3,9 @@ + diff --git a/config/application.rb b/config/application.rb index 651aaff..b3b89bf 100644 --- a/config/application.rb +++ b/config/application.rb @@ -2,6 +2,7 @@ require 'rails/all' #require 'devise' +require 'recaptcha/rails' require 'csv' # Require the gems listed in Gemfile, including any gems diff --git a/config/routes.rb b/config/routes.rb index eedc121..9e1ef0b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,10 +1,4 @@ Rails.application.routes.draw do - get "about_us" => 'static_pages#about_us', :as => "about_us" - get "help" => 'static_pages#help', :as => "help" - get "news" => 'static_pages#news', :as => "news" - get "terms" => 'static_pages#termsuse', :as => "terms" - get "existing_users" => 'existing_users#index', :as => "existing_users" - devise_for :users, :controllers => {:registrations => "registrations", :confirmations => 'confirmations', :passwords => 'passwords', :sessions => 'sessions', :omniauth_callbacks => 'users/omniauth_callbacks'} do get "/users/sign_out", :to => "devise/sessions#destroy" end @@ -30,7 +24,15 @@ get '/:locale' => 'home#index', :as => 'locale_root' scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do - resources :contacts, :controllers => {:contacts => 'contacts'} + get "about_us" => 'static_pages#about_us' + get "help" => 'static_pages#help' + get "roadmap" => 'static_pages#roadmap' + get "terms" => 'static_pages#termsuse' + get "existing_users" => 'existing_users#index' + + #post 'contact_form' => 'contacts', as: 'localized_contact_creation' + #get 'contact_form' => 'contacts#new', as: 'localized_contact_form' + resources :organisations, :path => 'org/admin' do member do get 'children'