Rails.application.routes.draw do root to: 'rails_connector/cms_dispatch#index' match ':id(/*slug)', to: 'rails_connector/cms_dispatch#index', constraints: { id: /\d+|[0-9a-f]{16}/ }, as: "cms_id", via: :all match 'toggle_markers/:id', to: 'rails_connector/cms_dispatch#toggle_editmarkers', as: "toggle_markers", via: :all match '/*permalink', to: 'rails_connector/cms_dispatch#index', as: 'cms_permalink', format: false, via: :all end