Rails.application.routes.draw do if RailsConnector::Configuration.enabled?(:search) match 'search', :to => 'search#search' end if RailsConnector::Configuration.enabled?(:crm) match 'login', :to => 'user#login' match 'logout', :to => 'user#logout' match 'user/:action', :to => 'user', :as => "user" end if RailsConnector::Configuration.enabled?(:time_machine) && RailsConnector::Configuration.editor_interface_enabled? match 'time_machine/:action', :to => 'rails_connector/time_machine', :as => "time_machine" end if RailsConnector::Configuration.enabled?(:rss) match 'rss', :to => 'rss#index', :format => "rss" end if RailsConnector::Configuration.enabled?(:comments) match 'comments/:action(/:id)', :to => 'comments', :as => "comment" end if RailsConnector::Configuration.enabled?(:ratings) match 'ratings/:action/:id(/:score)', :to => 'ratings', :as => "ratings" end if RailsConnector::Configuration.enabled?(:seo_sitemap) match 'sitemap.xml', :to => 'seo_sitemap#show', :format => 'xml' end end