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 get '/blog(/:year(/:month(/:day)))' => 'posts#show_date', :constraints => { :year => /(19|20)\d\d/, :month => /[01]?\d/, :day => /[0-3]?\d/ }, :day => nil, :month => nil get 'archive/:year', :controller => 'archive', :action => 'index', :defaults => { :year => nil }, :constraints => { :year => /\d{4}/ }, :as => "blog" resources :people #match 'legacy/people' => "people#index", :legacy => "true" get 'symbols', :controller => :symbols, :action => :show, :name => :as_symbol get 'id_default(/:id)' => "foo#id_default", :id => 1 match 'get_or_post' => "foo#get_or_post", :via => [:get, :post] get 'optional/:optional' => "posts#index" get 'projects/:project_id' => "project#index", :as => "project" get 'clients' => "projects#index" get 'ignorecase/geocode/:postalcode' => 'geocode#show', :postalcode => /hx\d\d-\d[a-z]{2}/i get 'extended/geocode/:postalcode' => 'geocode#show',:constraints => { :postalcode => /# Postcode format \d{5} #Prefix (-\d{4})? #Suffix /x }, :as => "geocode" get 'news(.:format)' => "news#index" ActiveSupport::Deprecation.silence { get 'comment/:id(/:action)' => "comments#show" get 'ws/:controller(/:action(/:id))', :ws => true get 'account(/:action)' => "account#subscription" get 'pages/:page_id/:controller(/:action(/:id))' get ':controller/ping', :action => 'ping' get ':controller(/:action(/:id))(.:format)' } root :to => "news#index" }
 
Attributes
[RW] controller
[R] routes
Instance Public methods
setup()
# File actionpack/test/controller/url_for_integration_test.rb, line 70
def setup
  @routes = make_set false
  @routes.draw(&Mapping)
end