The Depot Application
21.2 Routing Requests
21 Action Controller: Routing and URLs
21.2 Routing Requests
ls app/controllers/*_controller.rb
app/controllers/admin_controller.rb
app/controllers/application_controller.rb
app/controllers/info_controller.rb
app/controllers/line_items_controller.rb
app/controllers/orders_controller.rb
app/controllers/products_controller.rb
app/controllers/store_controller.rb
app/controllers/users_controller.rb
irb e1/routing/config/routes_for_depot.rb
>> require "./config/environment.rb"
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:14: warning: already initialized constant VERSION
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:14: warning: already initialized constant RubyGemsVersion
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:194: warning: already initialized constant MUTEX
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:196: warning: already initialized constant RubyGemsPackageVersion
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:202: warning: already initialized constant WIN_PATTERNS
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:1079: warning: already initialized constant MARSHAL_SPEC_DIR
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:1084: warning: already initialized constant YAML_SPEC_DIR
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/version.rb:72: warning: already initialized constant VERSION_PATTERN
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:20: warning: already initialized constant OPS
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:30: warning: already initialized constant OP_RE
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/version.rb:246: warning: already initialized constant Requirement
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:18: warning: already initialized constant TYPES
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb:171: warning: already initialized constant RUBY
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb:177: warning: already initialized constant CURRENT
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:39: warning: already initialized constant NONEXISTENT_SPECIFICATION_VERSION
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:50: warning: already initialized constant CURRENT_SPECIFICATION_VERSION
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:56: warning: already initialized constant SPECIFICATION_VERSION_HISTORY
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:72: warning: already initialized constant MARSHAL_FIELDS
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:75: warning: already initialized constant TODAY
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:593: warning: already initialized constant Cache
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:14: warning: already initialized constant DEFAULT_BACKTRACE
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:15: warning: already initialized constant DEFAULT_BENCHMARK
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:16: warning: already initialized constant DEFAULT_BULK_THRESHOLD
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:17: warning: already initialized constant DEFAULT_VERBOSITY
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:18: warning: already initialized constant DEFAULT_UPDATE_SOURCES
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:24: warning: already initialized constant OPERATING_SYSTEM_DEFAULTS
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:30: warning: already initialized constant PLATFORM_DEFAULTS
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:53: warning: already initialized constant SYSTEM_WIDE_CONFIG_FILE
=> true
>> Rails::Application.reload_routes!
=> nil
>> require "active_support/test_case"
=> ["Mocha"]
>> rs = ActionController::Routing::Routes
=> #<ActionDispatch::Routing::RouteSet:0x000000043f1da0 @routes=[#<ActionDispatch::Routing::Route:0x000000045d1300 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000041e3398 @glob_param=nil>, @defaults={:action=>"index", :controller=>"users"}, @name="users", @requirements={:controller=>"users", :action=>"index"}, @path="/users(.:format)", @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:format]>, #<ActionDispatch::Routing::Route:0x000000048b91a0 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000048fbf88 @glob_param=nil>, @defaults={:action=>"create", :controller=>"users"}, @name="users", @requirements={:controller=>"users", :action=>"create"}, @path="/users(.:format)", @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/}, @segment_keys=[:format]>, #<ActionDispatch::Routing::Route:0x000000045c6080 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000045d8878 @glob_param=nil>, @defaults={:action=>"new", :controller=>"users"}, @name="new_user", @requirements={:controller=>"users", :action=>"new"}, @path="/users/new(.:format)", @conditions={:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:format]>, #<ActionDispatch::Routing::Route:0x0000000449dd80 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004521f10 @glob_param=nil>, @defaults={:action=>"show", :controller=>"users"}, @name="user", @requirements={:controller=>"users", :action=>"show"}, @path="/users/:id(.:format)", @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x000000043e9398 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043fa508 @glob_param=nil>, @defaults={:action=>"update", :controller=>"users"}, @name="user", @requirements={:controller=>"users", :action=>"update"}, @path="/users/:id(.:format)", @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x000000043a1098 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043ae5a8 @glob_param=nil>, @defaults={:action=>"destroy", :controller=>"users"}, @name="user", @requirements={:controller=>"users", :action=>"destroy"}, @path="/users/:id(.:format)", @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x000000042ef548 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043474b8 @glob_param=nil>, @defaults={:action=>"edit", :controller=>"users"}, @name="edit_user", @requirements={:controller=>"users", :action=>"edit"}, @path="/users/:id/edit(.:format)", @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x00000004188d70 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004195cd0 @glob_param=nil>, @defaults={:action=>"index", :controller=>"line_items"}, @name="line_items", @requirements={:controller=>"line_items", :action=>"index"}, @path="/line_items(.:format)", @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:format]>, #<ActionDispatch::Routing::Route:0x000000040e1e48 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000040f1e70 @glob_param=nil>, @defaults={:action=>"create", :controller=>"line_items"}, @name="line_items", @requirements={:controller=>"line_items", :action=>"create"}, @path="/line_items(.:format)", @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/}, @segment_keys=[:format]>, #<ActionDispatch::Routing::Route:0x00000004005098 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004030560 @glob_param=nil>, @defaults={:action=>"new", :controller=>"line_items"}, @name="new_line_item", @requirements={:controller=>"line_items", :action=>"new"}, @path="/line_items/new(.:format)", @conditions={:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:format]>, #<ActionDispatch::Routing::Route:0x00000003ec60b8 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003eff938 @glob_param=nil>, @defaults={:action=>"show", :controller=>"line_items"}, @name="line_item", @requirements={:controller=>"line_items", :action=>"show"}, @path="/line_items/:id(.:format)", @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x00000003da3298 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003de2dc0 @glob_param=nil>, @defaults={:action=>"update", :controller=>"line_items"}, @name="line_item", @requirements={:controller=>"line_items", :action=>"update"}, @path="/line_items/:id(.:format)", @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x00000003cf6e90 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003d165e8 @glob_param=nil>, @defaults={:action=>"destroy", :controller=>"line_items"}, @name="line_item", @requirements={:controller=>"line_items", :action=>"destroy"}, @path="/line_items/:id(.:format)", @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x00000003bb0318 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003bd4620 @glob_param=nil>, @defaults={:action=>"edit", :controller=>"line_items"}, @name="edit_line_item", @requirements={:controller=>"line_items", :action=>"edit"}, @path="/line_items/:id/edit(.:format)", @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x00000003acb308 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003acec58 @glob_param=nil>, @defaults={:action=>"index", :controller=>"orders"}, @name="orders", @requirements={:controller=>"orders", :action=>"index"}, @path="/orders(.:format)", @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:format]>, #<ActionDispatch::Routing::Route:0x000000039c3640 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000039e58b0 @glob_param=nil>, @defaults={:action=>"create", :controller=>"orders"}, @name="orders", @requirements={:controller=>"orders", :action=>"create"}, @path="/orders(.:format)", @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/}, @segment_keys=[:format]>, #<ActionDispatch::Routing::Route:0x00000003939c50 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003942070 @glob_param=nil>, @defaults={:action=>"new", :controller=>"orders"}, @name="new_order", @requirements={:controller=>"orders", :action=>"new"}, @path="/orders/new(.:format)", @conditions={:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:format]>, #<ActionDispatch::Routing::Route:0x000000037ed610 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003858280 @glob_param=nil>, @defaults={:action=>"show", :controller=>"orders"}, @name="order", @requirements={:controller=>"orders", :action=>"show"}, @path="/orders/:id(.:format)", @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x000000035e9520 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003604e90 @glob_param=nil>, @defaults={:action=>"update", :controller=>"orders"}, @name="order", @requirements={:controller=>"orders", :action=>"update"}, @path="/orders/:id(.:format)", @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x000000033f2f98 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003402f18 @glob_param=nil>, @defaults={:action=>"destroy", :controller=>"orders"}, @name="order", @requirements={:controller=>"orders", :action=>"destroy"}, @path="/orders/:id(.:format)", @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x000000032d7e98 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003336ee8 @glob_param=nil>, @defaults={:action=>"edit", :controller=>"orders"}, @name="edit_order", @requirements={:controller=>"orders", :action=>"edit"}, @path="/orders/:id/edit(.:format)", @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x00000002cac080 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002cb99b8 @glob_param=nil>, @defaults={:action=>"index", :controller=>"products"}, @name="products", @requirements={:controller=>"products", :action=>"index"}, @path="/products(.:format)", @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:format]>, #<ActionDispatch::Routing::Route:0x00000002ace058 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002af46d0 @glob_param=nil>, @defaults={:action=>"create", :controller=>"products"}, @name="products", @requirements={:controller=>"products", :action=>"create"}, @path="/products(.:format)", @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/}, @segment_keys=[:format]>, #<ActionDispatch::Routing::Route:0x000000029e90b8 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a565d8 @glob_param=nil>, @defaults={:action=>"new", :controller=>"products"}, @name="new_product", @requirements={:controller=>"products", :action=>"new"}, @path="/products/new(.:format)", @conditions={:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:format]>, #<ActionDispatch::Routing::Route:0x0000000291efd0 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000029461e0 @glob_param=nil>, @defaults={:action=>"show", :controller=>"products"}, @name="product", @requirements={:controller=>"products", :action=>"show"}, @path="/products/:id(.:format)", @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x000000027a2950 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027bf5c8 @glob_param=nil>, @defaults={:action=>"update", :controller=>"products"}, @name="product", @requirements={:controller=>"products", :action=>"update"}, @path="/products/:id(.:format)", @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x0000000269ba50 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000026a7bb0 @glob_param=nil>, @defaults={:action=>"destroy", :controller=>"products"}, @name="product", @requirements={:controller=>"products", :action=>"destroy"}, @path="/products/:id(.:format)", @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x000000025e7650 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000264bf38 @glob_param=nil>, @defaults={:action=>"edit", :controller=>"products"}, @name="edit_product", @requirements={:controller=>"products", :action=>"edit"}, @path="/products/:id/edit(.:format)", @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:id, :format]>, #<ActionDispatch::Routing::Route:0x00000004ba7940 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil>, @defaults={}, @name=nil, @requirements={}, @path="/:controller(/:action(/:id(.:format)))", @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/}>, #<ActionDispatch::Routing::Route:0x0000000461f790 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004121190 @glob_param=nil>, @defaults={:controller=>"rails/info", :action=>"properties"}, @name=nil, @requirements={:controller=>"rails/info", :action=>"properties"}, @path="/rails/info/properties", @conditions={:path_info=>/\A\/rails\/info\/properties\Z/}>], @named_routes=#<ActionDispatch::Routing::RouteSet::NamedRouteCollection:0x000000043f1d30 @routes={:users=>#<ActionDispatch::Routing::Route:0x000000048b91a0 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000048fbf88 @glob_param=nil>, @defaults={:action=>"create", :controller=>"users"}, @name="users", @requirements={:controller=>"users", :action=>"create"}, @path="/users(.:format)", @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/}, @segment_keys=[:format]>, :new_user=>#<ActionDispatch::Routing::Route:0x000000045c6080 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000045d8878 @glob_param=nil>, @defaults={:action=>"new", :controller=>"users"}, @name="new_user", @requirements={:controller=>"users", :action=>"new"}, @path="/users/new(.:format)", @conditions={:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:format]>, :user=>#<ActionDispatch::Routing::Route:0x000000043a1098 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043ae5a8 @glob_param=nil>, @defaults={:action=>"destroy", :controller=>"users"}, @name="user", @requirements={:controller=>"users", :action=>"destroy"}, @path="/users/:id(.:format)", @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/}, @segment_keys=[:id, :format]>, :edit_user=>#<ActionDispatch::Routing::Route:0x000000042ef548 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043474b8 @glob_param=nil>, @defaults={:action=>"edit", :controller=>"users"}, @name="edit_user", @requirements={:controller=>"users", :action=>"edit"}, @path="/users/:id/edit(.:format)", @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:id, :format]>, :line_items=>#<ActionDispatch::Routing::Route:0x000000040e1e48 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000040f1e70 @glob_param=nil>, @defaults={:action=>"create", :controller=>"line_items"}, @name="line_items", @requirements={:controller=>"line_items", :action=>"create"}, @path="/line_items(.:format)", @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/}, @segment_keys=[:format]>, :new_line_item=>#<ActionDispatch::Routing::Route:0x00000004005098 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004030560 @glob_param=nil>, @defaults={:action=>"new", :controller=>"line_items"}, @name="new_line_item", @requirements={:controller=>"line_items", :action=>"new"}, @path="/line_items/new(.:format)", @conditions={:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:format]>, :line_item=>#<ActionDispatch::Routing::Route:0x00000003cf6e90 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003d165e8 @glob_param=nil>, @defaults={:action=>"destroy", :controller=>"line_items"}, @name="line_item", @requirements={:controller=>"line_items", :action=>"destroy"}, @path="/line_items/:id(.:format)", @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/}, @segment_keys=[:id, :format]>, :edit_line_item=>#<ActionDispatch::Routing::Route:0x00000003bb0318 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003bd4620 @glob_param=nil>, @defaults={:action=>"edit", :controller=>"line_items"}, @name="edit_line_item", @requirements={:controller=>"line_items", :action=>"edit"}, @path="/line_items/:id/edit(.:format)", @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:id, :format]>, :orders=>#<ActionDispatch::Routing::Route:0x000000039c3640 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000039e58b0 @glob_param=nil>, @defaults={:action=>"create", :controller=>"orders"}, @name="orders", @requirements={:controller=>"orders", :action=>"create"}, @path="/orders(.:format)", @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/}, @segment_keys=[:format]>, :new_order=>#<ActionDispatch::Routing::Route:0x00000003939c50 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003942070 @glob_param=nil>, @defaults={:action=>"new", :controller=>"orders"}, @name="new_order", @requirements={:controller=>"orders", :action=>"new"}, @path="/orders/new(.:format)", @conditions={:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:format]>, :order=>#<ActionDispatch::Routing::Route:0x000000033f2f98 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003402f18 @glob_param=nil>, @defaults={:action=>"destroy", :controller=>"orders"}, @name="order", @requirements={:controller=>"orders", :action=>"destroy"}, @path="/orders/:id(.:format)", @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/}, @segment_keys=[:id, :format]>, :edit_order=>#<ActionDispatch::Routing::Route:0x000000032d7e98 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003336ee8 @glob_param=nil>, @defaults={:action=>"edit", :controller=>"orders"}, @name="edit_order", @requirements={:controller=>"orders", :action=>"edit"}, @path="/orders/:id/edit(.:format)", @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:id, :format]>, :products=>#<ActionDispatch::Routing::Route:0x00000002ace058 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002af46d0 @glob_param=nil>, @defaults={:action=>"create", :controller=>"products"}, @name="products", @requirements={:controller=>"products", :action=>"create"}, @path="/products(.:format)", @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/}, @segment_keys=[:format]>, :new_product=>#<ActionDispatch::Routing::Route:0x000000029e90b8 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a565d8 @glob_param=nil>, @defaults={:action=>"new", :controller=>"products"}, @name="new_product", @requirements={:controller=>"products", :action=>"new"}, @path="/products/new(.:format)", @conditions={:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:format]>, :product=>#<ActionDispatch::Routing::Route:0x0000000269ba50 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000026a7bb0 @glob_param=nil>, @defaults={:action=>"destroy", :controller=>"products"}, @name="product", @requirements={:controller=>"products", :action=>"destroy"}, @path="/products/:id(.:format)", @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/}, @segment_keys=[:id, :format]>, :edit_product=>#<ActionDispatch::Routing::Route:0x000000025e7650 @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000264bf38 @glob_param=nil>, @defaults={:action=>"edit", :controller=>"products"}, @name="edit_product", @requirements={:controller=>"products", :action=>"edit"}, @path="/products/:id/edit(.:format)", @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, @segment_keys=[:id, :format]>}, @helpers=[:hash_for_users_url, :users_url, :hash_for_users_path, :users_path, :hash_for_users_url, :users_url, :hash_for_users_path, :users_path, :hash_for_new_user_url, :new_user_url, :hash_for_new_user_path, :new_user_path, :hash_for_user_url, :user_url, :hash_for_user_path, :user_path, :hash_for_user_url, :user_url, :hash_for_user_path, :user_path, :hash_for_user_url, :user_url, :hash_for_user_path, :user_path, :hash_for_edit_user_url, :edit_user_url, :hash_for_edit_user_path, :edit_user_path, :hash_for_line_items_url, :line_items_url, :hash_for_line_items_path, :line_items_path, :hash_for_line_items_url, :line_items_url, :hash_for_line_items_path, :line_items_path, :hash_for_new_line_item_url, :new_line_item_url, :hash_for_new_line_item_path, :new_line_item_path, :hash_for_line_item_url, :line_item_url, :hash_for_line_item_path, :line_item_path, :hash_for_line_item_url, :line_item_url, :hash_for_line_item_path, :line_item_path, :hash_for_line_item_url, :line_item_url, :hash_for_line_item_path, :line_item_path, :hash_for_edit_line_item_url, :edit_line_item_url, :hash_for_edit_line_item_path, :edit_line_item_path, :hash_for_orders_url, :orders_url, :hash_for_orders_path, :orders_path, :hash_for_orders_url, :orders_url, :hash_for_orders_path, :orders_path, :hash_for_new_order_url, :new_order_url, :hash_for_new_order_path, :new_order_path, :hash_for_order_url, :order_url, :hash_for_order_path, :order_path, :hash_for_order_url, :order_url, :hash_for_order_path, :order_path, :hash_for_order_url, :order_url, :hash_for_order_path, :order_path, :hash_for_edit_order_url, :edit_order_url, :hash_for_edit_order_path, :edit_order_path, :hash_for_products_url, :products_url, :hash_for_products_path, :products_path, :hash_for_products_url, :products_url, :hash_for_products_path, :products_path, :hash_for_new_product_url, :new_product_url, :hash_for_new_product_path, :new_product_path, :hash_for_product_url, :product_url, :hash_for_product_path, :product_path, :hash_for_product_url, :product_url, :hash_for_product_path, :product_path, :hash_for_product_url, :product_url, :hash_for_product_path, :product_path, :hash_for_edit_product_url, :edit_product_url, :hash_for_edit_product_path, :edit_product_path], @module=#<Module:0x000000043f1c18>>, @resources_path_names={:new=>"new", :edit=>"edit"}, @controller_namespaces=#<Set: {"rails"}>, @disable_clear_and_finalize=false, @controller_constraints=/rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+/, @set=#<Rack::Mount::RouteSet:0x000000046c9828 @optimized_recognize_defined=true, @parameters_key="action_dispatch.request.path_parameters", @recognition_key_analyzer=nil, @named_routes={:users=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000048fbf88 @glob_param=nil> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"users"} @name=:users>, :new_user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000045d8878 @glob_param=nil> @conditions={:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"users"} @name=:new_user>, :user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043ae5a8 @glob_param=nil> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"users"} @name=:user>, :edit_user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043474b8 @glob_param=nil> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"users"} @name=:edit_user>, :line_items=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000040f1e70 @glob_param=nil> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"line_items"} @name=:line_items>, :new_line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004030560 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"line_items"} @name=:new_line_item>, :line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003d165e8 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"line_items"} @name=:line_item>, :edit_line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003bd4620 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"line_items"} @name=:edit_line_item>, :orders=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000039e58b0 @glob_param=nil> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"orders"} @name=:orders>, :new_order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003942070 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"orders"} @name=:new_order>, :order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003402f18 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"orders"} @name=:order>, :edit_order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003336ee8 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"orders"} @name=:edit_order>, :products=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002af46d0 @glob_param=nil> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"products"} @name=:products>, :new_product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a565d8 @glob_param=nil> @conditions={:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"products"} @name=:new_product>, :product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000026a7bb0 @glob_param=nil> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"products"} @name=:product>, :edit_product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000264bf38 @glob_param=nil> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"products"} @name=:edit_product>}, @generation_key_analyzer=nil, @request_class=Rack::Request, @valid_conditions=nil, @routes=[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000041e3398 @glob_param=nil> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"users"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000048fbf88 @glob_param=nil> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"users"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000045d8878 @glob_param=nil> @conditions={:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"users"} @name=:new_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004521f10 @glob_param=nil> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"users"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043fa508 @glob_param=nil> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:action=>"update", :controller=>"users"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043ae5a8 @glob_param=nil> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"users"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043474b8 @glob_param=nil> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"users"} @name=:edit_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004195cd0 @glob_param=nil> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"line_items"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000040f1e70 @glob_param=nil> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"line_items"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004030560 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"line_items"} @name=:new_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003eff938 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"line_items"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003de2dc0 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:action=>"update", :controller=>"line_items"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003d165e8 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"line_items"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003bd4620 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"line_items"} @name=:edit_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003acec58 @glob_param=nil> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"orders"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000039e58b0 @glob_param=nil> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"orders"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003942070 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"orders"} @name=:new_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003858280 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"orders"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003604e90 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:action=>"update", :controller=>"orders"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003402f18 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"orders"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003336ee8 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"orders"} @name=:edit_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002cb99b8 @glob_param=nil> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"products"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002af46d0 @glob_param=nil> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"products"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a565d8 @glob_param=nil> @conditions={:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"products"} @name=:new_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000029461e0 @glob_param=nil> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"products"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027bf5c8 @glob_param=nil> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:action=>"update", :controller=>"products"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000026a7bb0 @glob_param=nil> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"products"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000264bf38 @glob_param=nil> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"products"} @name=:edit_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004121190 @glob_param=nil> @conditions={:path_info=>/\A\/rails\/info\/properties\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=nil>, #<Rack::Mount::Route @app=#<Proc:0x000000043f83c8@/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:7 (lambda)> @conditions={} @defaults={} @name=nil>], @recognition_graph=#<Rack::Mount::Multimap:0x00000004b1f878 @hash={"users"=>#<Rack::Mount::Multimap:0x00000004b1f5d8 @hash={"GET"=>#<Rack::Mount::Multimap:0x00000004b1ed18 @hash={"new"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000041e3398 @glob_param=nil> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"users"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000045d8878 @glob_param=nil> @conditions={:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"users"} @name=:new_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004521f10 @glob_param=nil> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"users"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043474b8 @glob_param=nil> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"users"} @name=:edit_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<Proc:0x000000043f83c8@/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:7 (lambda)> @conditions={} @defaults={} @name=nil>]}>, "POST"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000048fbf88 @glob_param=nil> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"users"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<Proc:0x000000043f83c8@/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:7 (lambda)> @conditions={} @defaults={} @name=nil>], "PUT"=>#<Rack::Mount::Multimap:0x00000004b1e2d0 @hash={}>, "DELETE"=>#<Rack::Mount::Multimap:0x00000004b1ddc8 @hash={}>}>, "line_items"=>#<Rack::Mount::Multimap:0x00000004b1d578 @hash={"GET"=>#<Rack::Mount::Multimap:0x00000004b1ccb8 @hash={"new"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004195cd0 @glob_param=nil> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"line_items"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004030560 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"line_items"} @name=:new_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003eff938 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"line_items"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003bd4620 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"line_items"} @name=:edit_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<Proc:0x000000043f83c8@/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:7 (lambda)> @conditions={} @defaults={} @name=nil>]}>, "POST"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000040f1e70 @glob_param=nil> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"line_items"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<Proc:0x000000043f83c8@/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:7 (lambda)> @conditions={} @defaults={} @name=nil>], "PUT"=>#<Rack::Mount::Multimap:0x00000004b1c270 @hash={}>, "DELETE"=>#<Rack::Mount::Multimap:0x00000004918810 @hash={}>}>, "orders"=>#<Rack::Mount::Multimap:0x00000004917fc0 @hash={"GET"=>#<Rack::Mount::Multimap:0x00000004917700 @hash={"new"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003acec58 @glob_param=nil> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"orders"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003942070 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"orders"} @name=:new_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003858280 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"orders"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003336ee8 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"orders"} @name=:edit_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<Proc:0x000000043f83c8@/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:7 (lambda)> @conditions={} @defaults={} @name=nil>]}>, "POST"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000039e58b0 @glob_param=nil> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"orders"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<Proc:0x000000043f83c8@/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:7 (lambda)> @conditions={} @defaults={} @name=nil>], "PUT"=>#<Rack::Mount::Multimap:0x00000004916cb8 @hash={}>, "DELETE"=>#<Rack::Mount::Multimap:0x000000049167b0 @hash={}>}>, "products"=>#<Rack::Mount::Multimap:0x00000004915f60 @hash={"GET"=>#<Rack::Mount::Multimap:0x000000049156a0 @hash={"new"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002cb99b8 @glob_param=nil> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"products"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a565d8 @glob_param=nil> @conditions={:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"products"} @name=:new_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000029461e0 @glob_param=nil> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"products"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000264bf38 @glob_param=nil> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"products"} @name=:edit_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<Proc:0x000000043f83c8@/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:7 (lambda)> @conditions={} @defaults={} @name=nil>]}>, "POST"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002af46d0 @glob_param=nil> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"products"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<Proc:0x000000043f83c8@/home/rubys/git/rails/actionpack/lib/action_dispatch/routing/route_set.rb:7 (lambda)> @conditions={} @defaults={} @name=nil>], "PUT"=>#<Rack::Mount::Multimap:0x00000004914c58 @hash={}>, "DELETE"=>#<Rack::Mount::Multimap:0x00000004907550 @hash={}>}>, "rails"=>#<Rack::Mount::Multimap:0x000000049067c0 @hash={}>}>, @recognition_keys=[[:path_info, 0, /\.|\//], :request_method, [:path_info, 1, /\.|\//]], @generation_graph=#<Rack::Mount::Multimap:0x000000047a6798 @hash={"users"=>#<Rack::Mount::Multimap:0x000000047a64f8 @hash={"index"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000041e3398 @glob_param=nil> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"users"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "create"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000048fbf88 @glob_param=nil> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"users"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "new"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000045d8878 @glob_param=nil> @conditions={:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"users"} @name=:new_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "show"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004521f10 @glob_param=nil> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"users"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "update"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043fa508 @glob_param=nil> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:action=>"update", :controller=>"users"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "destroy"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043ae5a8 @glob_param=nil> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"users"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "edit"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000043474b8 @glob_param=nil> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"users"} @name=:edit_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "line_items"=>#<Rack::Mount::Multimap:0x000000047a4d20 @hash={"index"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004195cd0 @glob_param=nil> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"line_items"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "create"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000040f1e70 @glob_param=nil> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"line_items"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "new"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004030560 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"line_items"} @name=:new_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "show"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003eff938 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"line_items"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "update"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003de2dc0 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:action=>"update", :controller=>"line_items"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "destroy"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003d165e8 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"line_items"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "edit"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003bd4620 @glob_param=nil> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"line_items"} @name=:edit_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "orders"=>#<Rack::Mount::Multimap:0x000000047a3548 @hash={"index"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003acec58 @glob_param=nil> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"orders"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "create"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000039e58b0 @glob_param=nil> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"orders"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "new"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003942070 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"orders"} @name=:new_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "show"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003858280 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"orders"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "update"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003604e90 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:action=>"update", :controller=>"orders"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "destroy"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003402f18 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"orders"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "edit"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003336ee8 @glob_param=nil> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"orders"} @name=:edit_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "products"=>#<Rack::Mount::Multimap:0x0000000478fc08 @hash={"index"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002cb99b8 @glob_param=nil> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"products"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "create"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002af46d0 @glob_param=nil> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"products"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "new"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a565d8 @glob_param=nil> @conditions={:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"products"} @name=:new_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "show"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000029461e0 @glob_param=nil> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"products"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "update"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027bf5c8 @glob_param=nil> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:action=>"update", :controller=>"products"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "destroy"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000026a7bb0 @glob_param=nil> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"products"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "edit"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000264bf38 @glob_param=nil> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"products"} @name=:edit_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "rails/info"=>#<Rack::Mount::Multimap:0x0000000478e1c8 @hash={"properties"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004ba7c18 @glob_param=nil> @conditions={:path_info=>/\A\/(?<controller>rails\/[_a-zA-Z0-9]+|[_a-zA-Z0-9]+)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000004121190 @glob_param=nil> @conditions={:path_info=>/\A\/rails\/info\/properties\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=nil>]}>}>, @generation_keys=[:controller, :action]>>
>> app = ActionDispatch::Integration::Session.new(nil)
=> #<ActionDispatch::Integration::Session:0x000000044a4220 @app=nil, @https=false, @mock_session=#<Rack::MockSession:0x000000044a40d0 @app=nil, @after_request=[], @default_host="www.example.com", @last_request=nil, @last_response=nil>, @response=nil, @request=nil, @controller=nil, @request_count=0, @host="www.example.com", @remote_addr="127.0.0.1", @accept="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", @named_routes_configured=true>
>> puts rs.routes
GET /users(.:format) {:controller=>"users", :action=>"index"}
POST /users(.:format) {:controller=>"users", :action=>"create"}
GET /users/new(.:format) {:controller=>"users", :action=>"new"}
GET /users/:id(.:format) {:controller=>"users", :action=>"show"}
PUT /users/:id(.:format) {:controller=>"users", :action=>"update"}
DELETE /users/:id(.:format) {:controller=>"users", :action=>"destroy"}
GET /users/:id/edit(.:format) {:controller=>"users", :action=>"edit"}
GET /line_items(.:format) {:controller=>"line_items", :action=>"index"}
POST /line_items(.:format) {:controller=>"line_items", :action=>"create"}
GET /line_items/new(.:format) {:controller=>"line_items", :action=>"new"}
GET /line_items/:id(.:format) {:controller=>"line_items", :action=>"show"}
PUT /line_items/:id(.:format) {:controller=>"line_items", :action=>"update"}
DELETE /line_items/:id(.:format) {:controller=>"line_items", :action=>"destroy"}
GET /line_items/:id/edit(.:format) {:controller=>"line_items", :action=>"edit"}
GET /orders(.:format) {:controller=>"orders", :action=>"index"}
POST /orders(.:format) {:controller=>"orders", :action=>"create"}
GET /orders/new(.:format) {:controller=>"orders", :action=>"new"}
GET /orders/:id(.:format) {:controller=>"orders", :action=>"show"}
PUT /orders/:id(.:format) {:controller=>"orders", :action=>"update"}
DELETE /orders/:id(.:format) {:controller=>"orders", :action=>"destroy"}
GET /orders/:id/edit(.:format) {:controller=>"orders", :action=>"edit"}
GET /products(.:format) {:controller=>"products", :action=>"index"}
POST /products(.:format) {:controller=>"products", :action=>"create"}
GET /products/new(.:format) {:controller=>"products", :action=>"new"}
GET /products/:id(.:format) {:controller=>"products", :action=>"show"}
PUT /products/:id(.:format) {:controller=>"products", :action=>"update"}
DELETE /products/:id(.:format) {:controller=>"products", :action=>"destroy"}
GET /products/:id/edit(.:format) {:controller=>"products", :action=>"edit"}
ANY /:controller(/:action(/:id(.:format))) {}
ANY /rails/info/properties {:controller=>"rails/info", :action=>"properties"}
=> nil
>> rs.recognize_path "/store"
=> {:controller=>"store", :action=>"index"}
>> rs.recognize_path "/store/add_to_cart/1"
=> {:controller=>"store", :action=>"add_to_cart", :id=>"1"}
>> rs.recognize_path "/store/add_to_cart/1.xml"
=> {:controller=>"store", :action=>"add_to_cart", :id=>"1", :format=>"xml"}
>> rs.generate :controller => :store
=> "/store"
>> rs.generate :controller => :store, :id => 123
=> "/store/index/123"
>> app.url_for :controller => :store, :action => :display, :id => 123
=> "http://www.example.com/store/display/123"
ruby -rubygems /home/rubys/git/rails/railties/bin/rails view
create
create README
create .gitignore
create Rakefile
create config.ru
create Gemfile
create app
create app/helpers/application_helper.rb
create app/controllers/application_controller.rb
create app/views/layouts
create app/models
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/test.rb
create config/environments/production.rb
create config/environments/development.rb
create config/initializers
create config/initializers/session_store.rb
create config/initializers/inflections.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/cookie_verification_secret.rb
create config/initializers/mime_types.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create log
create log/server.log
create log/production.log
create log/development.log
create log/test.log
create public
create public/404.html
create public/500.html
create public/index.html
create public/robots.txt
create public/422.html
create public/favicon.ico
create public/images
create public/images/rails.png
create public/stylesheets
create public/stylesheets/.gitkeep
create public/javascripts
create public/javascripts/rails.js
create public/javascripts/controls.js
create public/javascripts/application.js
create public/javascripts/dragdrop.js
create public/javascripts/prototype.js
create public/javascripts/effects.js
create script
create script/rails
create test
create test/performance/browsing_test.rb
create test/test_helper.rb
create test/integration
create test/unit
create test/functional
create test/fixtures
create tmp
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create vendor/plugins
create vendor/plugins/.gitkeep
bundle install
Resolving dependencies
Installing abstract (1.0.0) from system gems
Installing actionmailer (3.0.0.beta1) from source code at /home/rubys/git/rails
Installing actionpack (3.0.0.beta1) from source code at /home/rubys/git/rails
Installing activemodel (3.0.0.beta1) from source code at /home/rubys/git/rails
Installing activerecord (3.0.0.beta1) from source code at /home/rubys/git/rails
Installing activeresource (3.0.0.beta1) from source code at /home/rubys/git/rails
Installing activesupport (3.0.0.beta1) from source code at /home/rubys/git/rails
Installing arel (0.2.1) from system gems
Installing builder (2.1.2) from system gems
Installing bundler (0.9.4) from system gems
Installing erubis (2.6.5) from system gems
Installing i18n (0.3.3) from system gems
Installing mail (2.1.2) from system gems
Installing memcache-client (1.7.8) from system gems
Installing mime-types (1.16) from system gems
Installing rack (1.1.0) from system gems
Installing rack-mount (0.4.7) from system gems
Installing rack-test (0.5.3) from system gems
Installing rails (3.0.0.beta1) from source code at /home/rubys/git/rails
Installing railties (3.0.0.beta1) from source code at /home/rubys/git/rails
Installing rake (0.8.7) from system gems
Installing sqlite3-ruby (1.2.5) from system gems
Installing text-format (1.0.0) from system gems
Installing text-hyphen (1.0.0) from system gems
Installing thor (0.13.0) from system gems
Installing tzinfo (0.3.16) from system gems
Your bundle is complete!
edit config/routes.rb
View::Application.routes.draw do |map|
# ...
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
match ':controller(/:action(/:id(.:format)))'
end
cp -v /home/rubys/git/awdwr/data/code/e1/views/app/controllers/*.rb app/controllers
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/array_controller.rb' -> `app/controllers/array_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/article_controller.rb' -> `app/controllers/article_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/blog1_controller.rb' -> `app/controllers/blog1_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/blog2_controller.rb' -> `app/controllers/blog2_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/blog_controller.rb' -> `app/controllers/blog_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/builder_controller.rb' -> `app/controllers/builder_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/form_controller.rb' -> `app/controllers/form_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/form_for_controller.rb' -> `app/controllers/form_for_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/pager_controller.rb' -> `app/controllers/pager_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/partial_controller.rb' -> `app/controllers/partial_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/products_controller.rb' -> `app/controllers/products_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/rhtml_controller.rb' -> `app/controllers/rhtml_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/test_controller.rb' -> `app/controllers/test_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/upload_controller.rb' -> `app/controllers/upload_controller.rb'
irb e1/routing/config/routes_for_blog.rb
>> require "./config/environment.rb"
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:14: warning: already initialized constant VERSION
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:14: warning: already initialized constant RubyGemsVersion
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:194: warning: already initialized constant MUTEX
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:196: warning: already initialized constant RubyGemsPackageVersion
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:202: warning: already initialized constant WIN_PATTERNS
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:1079: warning: already initialized constant MARSHAL_SPEC_DIR
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems.rb:1084: warning: already initialized constant YAML_SPEC_DIR
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/version.rb:72: warning: already initialized constant VERSION_PATTERN
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:20: warning: already initialized constant OPS
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/requirement.rb:30: warning: already initialized constant OP_RE
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/version.rb:246: warning: already initialized constant Requirement
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:18: warning: already initialized constant TYPES
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb:171: warning: already initialized constant RUBY
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/platform.rb:177: warning: already initialized constant CURRENT
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:39: warning: already initialized constant NONEXISTENT_SPECIFICATION_VERSION
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:50: warning: already initialized constant CURRENT_SPECIFICATION_VERSION
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:56: warning: already initialized constant SPECIFICATION_VERSION_HISTORY
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:72: warning: already initialized constant MARSHAL_FIELDS
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/specification.rb:75: warning: already initialized constant TODAY
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:593: warning: already initialized constant Cache
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:14: warning: already initialized constant DEFAULT_BACKTRACE
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:15: warning: already initialized constant DEFAULT_BENCHMARK
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:16: warning: already initialized constant DEFAULT_BULK_THRESHOLD
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:17: warning: already initialized constant DEFAULT_VERBOSITY
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:18: warning: already initialized constant DEFAULT_UPDATE_SOURCES
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:24: warning: already initialized constant OPERATING_SYSTEM_DEFAULTS
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:30: warning: already initialized constant PLATFORM_DEFAULTS
/home/rubys/.rvm/ruby-1.9.1-p376/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:53: warning: already initialized constant SYSTEM_WIDE_CONFIG_FILE
=> true
>> ActionController::Base.session_store = nil
=> nil
>> require "active_support/test_case"
=> ["Mocha"]
>> rs = ActionController::Routing::Routes
=> #<ActionDispatch::Routing::RouteSet:0x000000037a8a30 @routes=[], @named_routes=#<ActionDispatch::Routing::RouteSet::NamedRouteCollection:0x000000037a8950 @routes={}, @helpers=[], @module=#<Module:0x000000037a8790>>, @resources_path_names={:new=>"new", :edit=>"edit"}, @controller_namespaces=#<Set: {"rails"}>, @disable_clear_and_finalize=false>
>> app = ActionDispatch::Integration::Session.new(nil)
=> #<ActionDispatch::Integration::Session:0x0000000391c980 @app=nil, @https=false, @mock_session=#<Rack::MockSession:0x0000000391c948 @app=nil, @after_request=[], @default_host="www.example.com", @last_request=nil, @last_response=nil>, @response=nil, @request=nil, @controller=nil, @request_count=0, @host="www.example.com", @remote_addr="127.0.0.1", @accept="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", @named_routes_configured=true>
?> ActionController::Routing::Routes.draw do |map|
?> # Straight 'http://my.app/blog/' displays the index
?> map.connect "blog/",
?> :controller => "blog",
?> :action => "index"
?> # Return articles for a year, year/month, or year/month/day
?> map.connect "blog/:year/:month/:day",
?> :controller => "blog",
?> :action => "show_date",
?> :requirements => { :year => /(19|20)\d\d/,
?> :month => /[01]?\d/,
?> :day => /[0-3]?\d/},
?> :day => nil,
?> :month => nil
>> # Show an article identified by an id
?> map.connect "blog/show/:id",
?> :controller => "blog",
?> :action => "show",
?> :id => /\d+/
>> # Regular Rails routing for admin stuff
?> map.connect "blog/article/:action/:id",
?> :controller => "article"
>> # Catchall so we can gracefully handle badly formed requests
?> map.connect "*anything",
?> :controller => "blog",
?> :action => "unknown_request"
>> end
=> nil
>> rs.recognize_path "/blog"
=> {:controller=>"blog", :action=>"index"}
>> rs.recognize_path "/blog/show/123"
=> {:controller=>"blog", :action=>"show", :id=>"123"}
>> rs.recognize_path "/blog/2004"
=> {:controller=>"blog", :action=>"show_date", :year=>"2004"}
>> rs.recognize_path "/blog/2004/12"
=> {:controller=>"blog", :action=>"show_date", :year=>"2004", :month=>"12"}
>> rs.recognize_path "/blog/2004/12/25"
=> {:controller=>"blog", :action=>"show_date", :year=>"2004", :month=>"12", :day=>"25"}
>> rs.recognize_path "/blog/article/edit/123"
=> {:controller=>"article", :action=>"edit", :id=>"123"}
>> rs.recognize_path "/blog/article/show_stats"
=> {:controller=>"article", :action=>"show_stats"}
>> rs.recognize_path "/blog/wibble"
=> {:controller=>"blog", :action=>"unknown_request", :anything=>["blog", "wibble"]}
>> rs.recognize_path "/junk"
=> {:controller=>"blog", :action=>"unknown_request", :anything=>["junk"]}
>> last_request = rs.recognize_path "/blog/2006/07/28"
=> {:controller=>"blog", :action=>"show_date", :year=>"2006", :month=>"07", :day=>"28"}
>> rs.generate({:day => 25}, last_request)
=> "/blog/2006/07/25"
>> rs.generate({:year => 2005}, last_request)
=> "/blog/2005"
>> app.url_for :controller => 'blog', :action => 'show_date', :year => 2002
=> "http://www.example.com/blog/2002"
>> app.url_for :controller => 'blog', :action => 'show_date', :overwrite_params => {:year => "2002" }
=> "http://www.example.com/blog/2002"