Methods
S
Included Modules
Constants
Model = Struct.new(:to_param)
 
Mapping = lambda { namespace :admin do resources :users, :posts end namespace 'api' do root :to => 'users#index' end match '/blog(/:year(/:month(/:day)))' => 'posts#show_date', :constraints => { :year => /(19|20)\d\d/, :month => /[01]?\d/, :day => /[0-3]?\d/ }, :day => nil, :month => nil match 'archive/:year', :controller => 'archive', :action => 'index', :defaults => { :year => nil }, :constraints => { :year => /\d{4}/ }, :as => "blog" resources :people #match 'legacy/people' => "people#index", :legacy => "true" match 'symbols', :controller => :symbols, :action => :show, :name => :as_symbol match 'id_default(/:id)' => "foo#id_default", :id => 1 match 'get_or_post' => "foo#get_or_post", :via => [:get, :post] match 'optional/:optional' => "posts#index" match 'projects/:project_id' => "project#index", :as => "project" match 'clients' => "projects#index" match 'ignorecase/geocode/:postalcode' => 'geocode#show', :postalcode => /hx\d\d-\d[a-z]{2}/i match 'extended/geocode/:postalcode' => 'geocode#show',:constraints => { :postalcode => /# Postcode format \d{5} #Prefix (-\d{4})? #Suffix /x }, :as => "geocode" match 'news(.:format)' => "news#index" match 'comment/:id(/:action)' => "comments#show" match 'ws/:controller(/:action(/:id))', :ws => true match 'account(/:action)' => "account#subscription" match 'pages/:page_id/:controller(/:action(/:id))' match ':controller/ping', :action => 'ping' match ':controller(/:action(/:id))(.:format)' root :to => "news#index" }
 
Instance Public methods
setup()
# File actionpack/test/controller/url_for_integration_test.rb, line 63
def setup
  @routes = ActionDispatch::Routing::RouteSet.new
  @routes.draw(&Mapping)
end