I want to know if an arbitrary path can be mapped to a route
recognized_request_for accomplishes what I want, but I can\'t get it to work in my controller.
SOLUTION:
@related_page_path = '/' + @page.path begin ActionController::Routing::Routes.recognize_path(@related_page_path, :method => :get) rescue @related_page_path = nil end