module Spec::Rails::Example::RoutingHelpers

def route_for(options)

=> {:path => "/registrations", :method => :post}
route_for(:controller => 'registrations', :action => 'create')
=> '/registrations/1/edit'
route_for(:controller => 'registrations', :action => 'edit', :id => '1')
== Examples
the correct route for a given set of options.
Uses ActionController::Routing::Routes to generate
def route_for(options)
  RouteFor.new(self, options)
end