Fixed error pages
This commit is contained in:
@@ -29,6 +29,7 @@ module BikeBike
|
||||
config.i18n.enforce_available_locales = false
|
||||
self.paths['config/database'] = Rails.root.join('config', 'database.yml')
|
||||
config.active_record.raise_in_transactional_callbacks = true
|
||||
config.exceptions_app = self.routes
|
||||
|
||||
if Rails.env == 'development' || Rails.env == 'test'
|
||||
I18n.config.language_detection_method = I18n::Config::DETECT_LANGUAGE_FROM_URL_PARAM
|
||||
|
||||
+5
-4
@@ -46,9 +46,10 @@ BikeBike::Application.routes.draw do
|
||||
post '/logout' => 'application#user_logout', :as => :logout
|
||||
post '/translator-request' => 'application#translator_request', :as => :translator_request
|
||||
|
||||
get '/error_404' => 'application#error_404'
|
||||
get '/about' => 'application#about', :as => :about
|
||||
get '/policy' => 'application#policy', :as => :policy
|
||||
root 'application#home', :as => :home
|
||||
get '/error_404' => 'application#error_404'
|
||||
get '/404' => 'application#error_404'
|
||||
get '/about' => 'application#about', :as => :about
|
||||
get '/policy' => 'application#policy', :as => :policy
|
||||
root 'application#home', :as => :home
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user