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