Rails.application.routes.draw do if RailsPages.configuration.default_routes resources :pages, :module => :rails_pages, :only => :show, :format => false, :constraints => { :id => /.+?/ } end end