lib/generators/cms/install/templates/config/routes.rb in rails_admin_cms-0.0.6 vs lib/generators/cms/install/templates/config/routes.rb in rails_admin_cms-0.0.7

- old
+ new

@@ -1,10 +1,10 @@ Rails.application.routes.draw do mount Rich::Engine => '/rich', :as => 'rich' mount RailsAdmin::Engine => '/admin', as: 'rails_admin' - root to: "cms/pages#show", format: false, defaults: { cms_view_type: 'page', cms_body_class: 'page', locale: I18n.default_locale } + root to: "cms/pages#show", defaults: { cms_view_type: 'page', locale: I18n.default_locale }, format: false # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". # You can have the root of your site routed with "root" @@ -56,6 +56,8 @@ # namespace :admin do # # Directs /admin/products/* to Admin::ProductsController # # (app/controllers/admin/products_controller.rb) # resources :products # end + + match '*not_found', via: :all, to: 'application#render_404' end