23.3 Helpers for Formatting, Linking, and Pagination 21 Action Controller: Routing and URLs
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/config2/routes_for_depot.rb
>> require "./config/environment.rb"
=> true
>> ActionController::Base.session_store = nil
=> nil
>> ActionController::Routing.use_controllers! ["store", "admin", "coupon"]
=> ["store", "admin", "coupon"]
>> load "config/routes.rb"
=> []
>> rs = ActionController::Routing::Routes
=> #<ActionController::Routing::RouteSet:0x8c74408 @configuration_files=["/home/rubys/git/awdwr/work-191-238/depot/config/routes.rb"], @routes=[#<ActionController::Routing::Route:0x9b95698 @segments=[#<ActionController::Routing::DividerSegment:0x9b95c2c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9b95b14 @is_optional=false, @value="users">, #<ActionController::Routing::OptionalFormatSegment:0x9b95a50 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"index"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="users", @action_requirement="index", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"index"}, @defaults={:controller=>"users", :action=>"index"}, @to_s="GET /users(.:format)? {:controller=>\"users\", :action=>\"index\"}">, #<ActionController::Routing::Route:0x9b39dd8 @segments=[#<ActionController::Routing::DividerSegment:0x9b3a794 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9b3a52c @is_optional=false, @value="users">, #<ActionController::Routing::OptionalFormatSegment:0x9b3a13c @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"create"}, @conditions={:method=>:post}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="users", @action_requirement="create", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"create"}, @defaults={:controller=>"users", :action=>"create"}, @to_s="POST /users(.:format)? {:controller=>\"users\", :action=>\"create\"}">, #<ActionController::Routing::Route:0x9b054a4 @segments=[#<ActionController::Routing::DividerSegment:0x9b066b0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9b06544 @is_optional=false, @value="users">, #<ActionController::Routing::DividerSegment:0x9b063bc @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9b06250 @is_optional=false, @value="new">, #<ActionController::Routing::OptionalFormatSegment:0x9b0618c @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"new"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="users", @action_requirement="new", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"new"}, @defaults={:controller=>"users", :action=>"new"}, @to_s="GET /users/new(.:format)? {:controller=>\"users\", :action=>\"new\"}">, #<ActionController::Routing::Route:0x99d0880 @segments=[#<ActionController::Routing::DividerSegment:0x99d169c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x99d1530 @is_optional=false, @value="users">, #<ActionController::Routing::DividerSegment:0x99d138c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x99d1220 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::DividerSegment:0x99d1098 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x99d0f48 @is_optional=false, @value="edit">, #<ActionController::Routing::OptionalFormatSegment:0x99d0e68 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"edit"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="users", @action_requirement="edit", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"edit"}, @defaults={:controller=>"users", :action=>"edit"}, @to_s="GET /users/:id/edit(.:format)? {:controller=>\"users\", :action=>\"edit\"}">, #<ActionController::Routing::Route:0x98686d8 @segments=[#<ActionController::Routing::DividerSegment:0x9869040 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9868f28 @is_optional=false, @value="users">, #<ActionController::Routing::DividerSegment:0x9868df4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9868cc0 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x9868be0 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"show"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="users", @action_requirement="show", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"show"}, @defaults={:controller=>"users", :action=>"show"}, @to_s="GET /users/:id(.:format)? {:controller=>\"users\", :action=>\"show\"}">, #<ActionController::Routing::Route:0x97ffc88 @segments=[#<ActionController::Routing::DividerSegment:0x9800484 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9800388 @is_optional=false, @value="users">, #<ActionController::Routing::DividerSegment:0x9800270 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9800174 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x98000b0 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"update"}, @conditions={:method=>:put}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="users", @action_requirement="update", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"update"}, @defaults={:controller=>"users", :action=>"update"}, @to_s="PUT /users/:id(.:format)? {:controller=>\"users\", :action=>\"update\"}">, #<ActionController::Routing::Route:0x97e5578 @segments=[#<ActionController::Routing::DividerSegment:0x97e79ac @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x97e7744 @is_optional=false, @value="users">, #<ActionController::Routing::DividerSegment:0x97e7434 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x97e707c @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x97e6e68 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"destroy"}, @conditions={:method=>:delete}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="users", @action_requirement="destroy", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"destroy"}, @defaults={:controller=>"users", :action=>"destroy"}, @to_s="DELETE /users/:id(.:format)? {:controller=>\"users\", :action=>\"destroy\"}">, #<ActionController::Routing::Route:0x95ef6b8 @segments=[#<ActionController::Routing::DividerSegment:0x95efc68 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x95efb34 @is_optional=false, @value="line_items">, #<ActionController::Routing::OptionalFormatSegment:0x95efa38 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"index"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="line_items", @action_requirement="index", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"index"}, @defaults={:controller=>"line_items", :action=>"index"}, @to_s="GET /line_items(.:format)? {:controller=>\"line_items\", :action=>\"index\"}">, #<ActionController::Routing::Route:0x9296ac0 @segments=[#<ActionController::Routing::DividerSegment:0x9298acc @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9297e54 @is_optional=false, @value="line_items">, #<ActionController::Routing::OptionalFormatSegment:0x9297914 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"create"}, @conditions={:method=>:post}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="line_items", @action_requirement="create", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"create"}, @defaults={:controller=>"line_items", :action=>"create"}, @to_s="POST /line_items(.:format)? {:controller=>\"line_items\", :action=>\"create\"}">, #<ActionController::Routing::Route:0x911cf20 @segments=[#<ActionController::Routing::DividerSegment:0x91e4330 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x91d9e94 @is_optional=false, @value="line_items">, #<ActionController::Routing::DividerSegment:0x9143eac @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9140c78 @is_optional=false, @value="new">, #<ActionController::Routing::OptionalFormatSegment:0x9122764 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"new"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="line_items", @action_requirement="new", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"new"}, @defaults={:controller=>"line_items", :action=>"new"}, @to_s="GET /line_items/new(.:format)? {:controller=>\"line_items\", :action=>\"new\"}">, #<ActionController::Routing::Route:0x8d18ccc @segments=[#<ActionController::Routing::DividerSegment:0x8d1b720 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x8d1b5d0 @is_optional=false, @value="line_items">, #<ActionController::Routing::DividerSegment:0x8d1b448 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x8d1b2f8 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::DividerSegment:0x8d1b090 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x8d1af40 @is_optional=false, @value="edit">, #<ActionController::Routing::OptionalFormatSegment:0x8d1ab50 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"edit"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="line_items", @action_requirement="edit", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"edit"}, @defaults={:controller=>"line_items", :action=>"edit"}, @to_s="GET /line_items/:id/edit(.:format)? {:controller=>\"line_items\", :action=>\"edit\"}">, #<ActionController::Routing::Route:0x8ae6df4 @segments=[#<ActionController::Routing::DividerSegment:0x8b207e0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x8b20230 @is_optional=false, @value="line_items">, #<ActionController::Routing::DividerSegment:0x8b0814c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x8b058f0 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x8b0520c @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"show"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="line_items", @action_requirement="show", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"show"}, @defaults={:controller=>"line_items", :action=>"show"}, @to_s="GET /line_items/:id(.:format)? {:controller=>\"line_items\", :action=>\"show\"}">, #<ActionController::Routing::Route:0x89bdc4c @segments=[#<ActionController::Routing::DividerSegment:0x89c2ad4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x89c2850 @is_optional=false, @value="line_items">, #<ActionController::Routing::DividerSegment:0x89c2658 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x89c087c @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x89bf8f4 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"update"}, @conditions={:method=>:put}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="line_items", @action_requirement="update", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"update"}, @defaults={:controller=>"line_items", :action=>"update"}, @to_s="PUT /line_items/:id(.:format)? {:controller=>\"line_items\", :action=>\"update\"}">, #<ActionController::Routing::Route:0x894c014 @segments=[#<ActionController::Routing::DividerSegment:0x894c82c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x894c730 @is_optional=false, @value="line_items">, #<ActionController::Routing::DividerSegment:0x894c5fc @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x894c500 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x894c420 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"destroy"}, @conditions={:method=>:delete}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="line_items", @action_requirement="destroy", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"destroy"}, @defaults={:controller=>"line_items", :action=>"destroy"}, @to_s="DELETE /line_items/:id(.:format)? {:controller=>\"line_items\", :action=>\"destroy\"}">, #<ActionController::Routing::Route:0x886b038 @segments=[#<ActionController::Routing::DividerSegment:0x886dcf4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x886db18 @is_optional=false, @value="orders">, #<ActionController::Routing::OptionalFormatSegment:0x886b850 @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"index"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="orders", @action_requirement="index", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"index"}, @defaults={:controller=>"orders", :action=>"index"}, @to_s="GET /orders(.:format)? {:controller=>\"orders\", :action=>\"index\"}">, #<ActionController::Routing::Route:0x871be54 @segments=[#<ActionController::Routing::DividerSegment:0x871e384 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x871e058 @is_optional=false, @value="orders">, #<ActionController::Routing::OptionalFormatSegment:0x871df78 @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"create"}, @conditions={:method=>:post}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="orders", @action_requirement="create", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"create"}, @defaults={:controller=>"orders", :action=>"create"}, @to_s="POST /orders(.:format)? {:controller=>\"orders\", :action=>\"create\"}">, #<ActionController::Routing::Route:0x86cd778 @segments=[#<ActionController::Routing::DividerSegment:0x86d0370 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x86cfc1c @is_optional=false, @value="orders">, #<ActionController::Routing::DividerSegment:0x86cf618 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x86cef6c @is_optional=false, @value="new">, #<ActionController::Routing::OptionalFormatSegment:0x86ceb7c @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"new"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="orders", @action_requirement="new", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"new"}, @defaults={:controller=>"orders", :action=>"new"}, @to_s="GET /orders/new(.:format)? {:controller=>\"orders\", :action=>\"new\"}">, #<ActionController::Routing::Route:0x855c0d8 @segments=[#<ActionController::Routing::DividerSegment:0x855f8a0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x855f6a8 @is_optional=false, @value="orders">, #<ActionController::Routing::DividerSegment:0x855f408 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x855f114 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::DividerSegment:0x855d93c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x855d798 @is_optional=false, @value="edit">, #<ActionController::Routing::OptionalFormatSegment:0x855d54c @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"edit"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="orders", @action_requirement="edit", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"edit"}, @defaults={:controller=>"orders", :action=>"edit"}, @to_s="GET /orders/:id/edit(.:format)? {:controller=>\"orders\", :action=>\"edit\"}">, #<ActionController::Routing::Route:0x83a7e2c @segments=[#<ActionController::Routing::DividerSegment:0x83add8c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x83ad5c8 @is_optional=false, @value="orders">, #<ActionController::Routing::DividerSegment:0x83ad0a4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x83a9674 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x83a9284 @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"show"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="orders", @action_requirement="show", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"show"}, @defaults={:controller=>"orders", :action=>"show"}, @to_s="GET /orders/:id(.:format)? {:controller=>\"orders\", :action=>\"show\"}">, #<ActionController::Routing::Route:0x8338120 @segments=[#<ActionController::Routing::DividerSegment:0x833d9f0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x833d7f8 @is_optional=false, @value="orders">, #<ActionController::Routing::DividerSegment:0x8339364 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x83391c0 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x8338f04 @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"update"}, @conditions={:method=>:put}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="orders", @action_requirement="update", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"update"}, @defaults={:controller=>"orders", :action=>"update"}, @to_s="PUT /orders/:id(.:format)? {:controller=>\"orders\", :action=>\"update\"}">, #<ActionController::Routing::Route:0x8282b4c @segments=[#<ActionController::Routing::DividerSegment:0x828f048 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x828e408 @is_optional=false, @value="orders">, #<ActionController::Routing::DividerSegment:0x828df38 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x828dcb4 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x828394c @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"destroy"}, @conditions={:method=>:delete}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="orders", @action_requirement="destroy", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"destroy"}, @defaults={:controller=>"orders", :action=>"destroy"}, @to_s="DELETE /orders/:id(.:format)? {:controller=>\"orders\", :action=>\"destroy\"}">, #<ActionController::Routing::Route:0x81b01c8 @segments=[#<ActionController::Routing::DividerSegment:0x81b10a8 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x81b0aa4 @is_optional=false, @value="products">, #<ActionController::Routing::OptionalFormatSegment:0x81b083c @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"index"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="products", @action_requirement="index", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"index"}, @defaults={:controller=>"products", :action=>"index"}, @to_s="GET /products(.:format)? {:controller=>\"products\", :action=>\"index\"}">, #<ActionController::Routing::Route:0x956760c @segments=[#<ActionController::Routing::DividerSegment:0x9567af8 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x95679fc @is_optional=false, @value="products">, #<ActionController::Routing::OptionalFormatSegment:0x9567938 @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"create"}, @conditions={:method=>:post}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="products", @action_requirement="create", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"create"}, @defaults={:controller=>"products", :action=>"create"}, @to_s="POST /products(.:format)? {:controller=>\"products\", :action=>\"create\"}">, #<ActionController::Routing::Route:0x9678b30 @segments=[#<ActionController::Routing::DividerSegment:0x9679230 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9679134 @is_optional=false, @value="products">, #<ActionController::Routing::DividerSegment:0x967901c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9678f20 @is_optional=false, @value="new">, #<ActionController::Routing::OptionalFormatSegment:0x9678e5c @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"new"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="products", @action_requirement="new", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"new"}, @defaults={:controller=>"products", :action=>"new"}, @to_s="GET /products/new(.:format)? {:controller=>\"products\", :action=>\"new\"}">, #<ActionController::Routing::Route:0x9bd50e0 @segments=[#<ActionController::Routing::DividerSegment:0x9bd5ad4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9bd59d8 @is_optional=false, @value="products">, #<ActionController::Routing::DividerSegment:0x9bd58c0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9bd57c4 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::DividerSegment:0x9bd56ac @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9bd55b0 @is_optional=false, @value="edit">, #<ActionController::Routing::OptionalFormatSegment:0x9bd54ec @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"edit"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="products", @action_requirement="edit", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"edit"}, @defaults={:controller=>"products", :action=>"edit"}, @to_s="GET /products/:id/edit(.:format)? {:controller=>\"products\", :action=>\"edit\"}">, #<ActionController::Routing::Route:0x9755fa8 @segments=[#<ActionController::Routing::DividerSegment:0x9756788 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x975668c @is_optional=false, @value="products">, #<ActionController::Routing::DividerSegment:0x9756574 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9756478 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x97563b4 @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"show"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="products", @action_requirement="show", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"show"}, @defaults={:controller=>"products", :action=>"show"}, @to_s="GET /products/:id(.:format)? {:controller=>\"products\", :action=>\"show\"}">, #<ActionController::Routing::Route:0x946bdec @segments=[#<ActionController::Routing::DividerSegment:0x946c5cc @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x946c4d0 @is_optional=false, @value="products">, #<ActionController::Routing::DividerSegment:0x946c3b8 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x946c2bc @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x946c1f8 @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"update"}, @conditions={:method=>:put}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="products", @action_requirement="update", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"update"}, @defaults={:controller=>"products", :action=>"update"}, @to_s="PUT /products/:id(.:format)? {:controller=>\"products\", :action=>\"update\"}">, #<ActionController::Routing::Route:0x9b13b50 @segments=[#<ActionController::Routing::DividerSegment:0x9b14330 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9b14234 @is_optional=false, @value="products">, #<ActionController::Routing::DividerSegment:0x9b1411c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9b14020 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x9b13f5c @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"destroy"}, @conditions={:method=>:delete}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="products", @action_requirement="destroy", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"destroy"}, @defaults={:controller=>"products", :action=>"destroy"}, @to_s="DELETE /products/:id(.:format)? {:controller=>\"products\", :action=>\"destroy\"}">, #<ActionController::Routing::Route:0x98dc2ac @segments=[#<ActionController::Routing::DividerSegment:0x9a6f334 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::ControllerSegment:0x9a6f238 @is_optional=false, @key=:controller>, #<ActionController::Routing::DividerSegment:0x9a6f120 @is_optional=true, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9a6f024 @is_optional=true, @key=:action, @default="index">, #<ActionController::Routing::DividerSegment:0x98dc70c @is_optional=true, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x98dc610 @is_optional=true, @key=:id>, #<ActionController::Routing::DividerSegment:0x98dc4f8 @is_optional=true, @value="/", @raw=true>], @requirements={}, @conditions={}, @significant_keys=[:controller, :action, :id], @optimise=false, @controller_requirement=nil, @action_requirement=nil, @matching_prepared=true, @parameter_shell={}, @defaults={:action=>"index"}, @to_s="ANY /:controller/:action/:id/ {}">, #<ActionController::Routing::Route:0x92d27ac @segments=[#<ActionController::Routing::DividerSegment:0x92d2ffc @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::ControllerSegment:0x92d2f00 @is_optional=false, @key=:controller>, #<ActionController::Routing::DividerSegment:0x92d2de8 @is_optional=true, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x92d2cec @is_optional=true, @key=:action, @default="index">, #<ActionController::Routing::DividerSegment:0x92d2bd4 @is_optional=true, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x92d2ad8 @is_optional=true, @key=:id>, #<ActionController::Routing::OptionalFormatSegment:0x92d2a14 @is_optional=true, @key=:format>], @requirements={}, @conditions={}, @significant_keys=[:controller, :action, :id, :format], @optimise=false, @controller_requirement=nil, @action_requirement=nil, @matching_prepared=true, @parameter_shell={}, @defaults={:action=>"index"}, @to_s="ANY /:controller/:action/:id(.:format)? {}">, #<ActionController::Routing::Route:0x8993044 @segments=[#<ActionController::Routing::DividerSegment:0x8993530 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x8993434 @is_optional=false, @value="users">, #<ActionController::Routing::OptionalFormatSegment:0x8993370 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"index"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="users", @action_requirement="index", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"index"}, @defaults={:controller=>"users", :action=>"index"}, @to_s="GET /users(.:format)? {:controller=>\"users\", :action=>\"index\"}">, #<ActionController::Routing::Route:0x8f12bf8 @segments=[#<ActionController::Routing::DividerSegment:0x8f130e4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x8f12fe8 @is_optional=false, @value="users">, #<ActionController::Routing::OptionalFormatSegment:0x8f12f24 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"create"}, @conditions={:method=>:post}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="users", @action_requirement="create", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"create"}, @defaults={:controller=>"users", :action=>"create"}, @to_s="POST /users(.:format)? {:controller=>\"users\", :action=>\"create\"}">, #<ActionController::Routing::Route:0x863d4a4 @segments=[#<ActionController::Routing::DividerSegment:0x8f0fa6c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x863daa8 @is_optional=false, @value="users">, #<ActionController::Routing::DividerSegment:0x863d990 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x863d894 @is_optional=false, @value="new">, #<ActionController::Routing::OptionalFormatSegment:0x863d7d0 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"new"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="users", @action_requirement="new", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"new"}, @defaults={:controller=>"users", :action=>"new"}, @to_s="GET /users/new(.:format)? {:controller=>\"users\", :action=>\"new\"}">, #<ActionController::Routing::Route:0x8d2ab94 @segments=[#<ActionController::Routing::DividerSegment:0x863a05c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x8639f60 @is_optional=false, @value="users">, #<ActionController::Routing::DividerSegment:0x8639e48 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x8639d4c @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::DividerSegment:0x8639c34 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x8639b38 @is_optional=false, @value="edit">, #<ActionController::Routing::OptionalFormatSegment:0x8d2afa0 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"edit"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="users", @action_requirement="edit", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"edit"}, @defaults={:controller=>"users", :action=>"edit"}, @to_s="GET /users/:id/edit(.:format)? {:controller=>\"users\", :action=>\"edit\"}">, #<ActionController::Routing::Route:0x9516c68 @segments=[#<ActionController::Routing::DividerSegment:0x9517448 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x951734c @is_optional=false, @value="users">, #<ActionController::Routing::DividerSegment:0x9517234 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9517138 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x9517074 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"show"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="users", @action_requirement="show", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"show"}, @defaults={:controller=>"users", :action=>"show"}, @to_s="GET /users/:id(.:format)? {:controller=>\"users\", :action=>\"show\"}">, #<ActionController::Routing::Route:0x9c9cbb8 @segments=[#<ActionController::Routing::DividerSegment:0x9c9d398 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9c9d29c @is_optional=false, @value="users">, #<ActionController::Routing::DividerSegment:0x9c9d184 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9c9d088 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x9c9cfc4 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"update"}, @conditions={:method=>:put}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="users", @action_requirement="update", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"update"}, @defaults={:controller=>"users", :action=>"update"}, @to_s="PUT /users/:id(.:format)? {:controller=>\"users\", :action=>\"update\"}">, #<ActionController::Routing::Route:0x93ceaa0 @segments=[#<ActionController::Routing::DividerSegment:0x93cf280 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x93cf184 @is_optional=false, @value="users">, #<ActionController::Routing::DividerSegment:0x93cf06c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x93cef70 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x93ceeac @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"destroy"}, @conditions={:method=>:delete}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="users", @action_requirement="destroy", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"destroy"}, @defaults={:controller=>"users", :action=>"destroy"}, @to_s="DELETE /users/:id(.:format)? {:controller=>\"users\", :action=>\"destroy\"}">, #<ActionController::Routing::Route:0x9bd1058 @segments=[#<ActionController::Routing::DividerSegment:0x9bd1544 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9bd1448 @is_optional=false, @value="line_items">, #<ActionController::Routing::OptionalFormatSegment:0x9bd1384 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"index"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="line_items", @action_requirement="index", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"index"}, @defaults={:controller=>"line_items", :action=>"index"}, @to_s="GET /line_items(.:format)? {:controller=>\"line_items\", :action=>\"index\"}">, #<ActionController::Routing::Route:0x9bcda6c @segments=[#<ActionController::Routing::DividerSegment:0x9bcdf58 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9bcde5c @is_optional=false, @value="line_items">, #<ActionController::Routing::OptionalFormatSegment:0x9bcdd98 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"create"}, @conditions={:method=>:post}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="line_items", @action_requirement="create", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"create"}, @defaults={:controller=>"line_items", :action=>"create"}, @to_s="POST /line_items(.:format)? {:controller=>\"line_items\", :action=>\"create\"}">, #<ActionController::Routing::Route:0x962fcb4 @segments=[#<ActionController::Routing::DividerSegment:0x96303b4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x96302b8 @is_optional=false, @value="line_items">, #<ActionController::Routing::DividerSegment:0x96301a0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x96300a4 @is_optional=false, @value="new">, #<ActionController::Routing::OptionalFormatSegment:0x962ffe0 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"new"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="line_items", @action_requirement="new", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"new"}, @defaults={:controller=>"line_items", :action=>"new"}, @to_s="GET /line_items/new(.:format)? {:controller=>\"line_items\", :action=>\"new\"}">, #<ActionController::Routing::Route:0x95a7b0c @segments=[#<ActionController::Routing::DividerSegment:0x95a8500 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x95a8404 @is_optional=false, @value="line_items">, #<ActionController::Routing::DividerSegment:0x95a82ec @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x95a81f0 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::DividerSegment:0x95a80d8 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x95a7fdc @is_optional=false, @value="edit">, #<ActionController::Routing::OptionalFormatSegment:0x95a7f18 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"edit"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="line_items", @action_requirement="edit", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"edit"}, @defaults={:controller=>"line_items", :action=>"edit"}, @to_s="GET /line_items/:id/edit(.:format)? {:controller=>\"line_items\", :action=>\"edit\"}">, #<ActionController::Routing::Route:0x991eca4 @segments=[#<ActionController::Routing::DividerSegment:0x987ebbc @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x987eac0 @is_optional=false, @value="line_items">, #<ActionController::Routing::DividerSegment:0x987e9a8 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x987e8ac @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x991f0b0 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"show"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="line_items", @action_requirement="show", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"show"}, @defaults={:controller=>"line_items", :action=>"show"}, @to_s="GET /line_items/:id(.:format)? {:controller=>\"line_items\", :action=>\"show\"}">, #<ActionController::Routing::Route:0x9c79c28 @segments=[#<ActionController::Routing::DividerSegment:0x9c7a408 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9c7a30c @is_optional=false, @value="line_items">, #<ActionController::Routing::DividerSegment:0x9c7a1f4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9c7a0f8 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x9c7a034 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"update"}, @conditions={:method=>:put}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="line_items", @action_requirement="update", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"update"}, @defaults={:controller=>"line_items", :action=>"update"}, @to_s="PUT /line_items/:id(.:format)? {:controller=>\"line_items\", :action=>\"update\"}">, #<ActionController::Routing::Route:0x9bf82bc @segments=[#<ActionController::Routing::DividerSegment:0x9bf8a9c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9bf89a0 @is_optional=false, @value="line_items">, #<ActionController::Routing::DividerSegment:0x9bf8888 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9bf878c @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x9bf86c8 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"destroy"}, @conditions={:method=>:delete}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="line_items", @action_requirement="destroy", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"destroy"}, @defaults={:controller=>"line_items", :action=>"destroy"}, @to_s="DELETE /line_items/:id(.:format)? {:controller=>\"line_items\", :action=>\"destroy\"}">, #<ActionController::Routing::Route:0x9bc71a4 @segments=[#<ActionController::Routing::DividerSegment:0x9bc7690 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9bc7594 @is_optional=false, @value="orders">, #<ActionController::Routing::OptionalFormatSegment:0x9bc74d0 @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"index"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="orders", @action_requirement="index", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"index"}, @defaults={:controller=>"orders", :action=>"index"}, @to_s="GET /orders(.:format)? {:controller=>\"orders\", :action=>\"index\"}">, #<ActionController::Routing::Route:0x976cac8 @segments=[#<ActionController::Routing::DividerSegment:0x976cfb4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x976ceb8 @is_optional=false, @value="orders">, #<ActionController::Routing::OptionalFormatSegment:0x976cdf4 @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"create"}, @conditions={:method=>:post}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="orders", @action_requirement="create", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"create"}, @defaults={:controller=>"orders", :action=>"create"}, @to_s="POST /orders(.:format)? {:controller=>\"orders\", :action=>\"create\"}">, #<ActionController::Routing::Route:0x98295c0 @segments=[#<ActionController::Routing::DividerSegment:0x9829cc0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9829bc4 @is_optional=false, @value="orders">, #<ActionController::Routing::DividerSegment:0x9829aac @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x98299b0 @is_optional=false, @value="new">, #<ActionController::Routing::OptionalFormatSegment:0x98298ec @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"new"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="orders", @action_requirement="new", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"new"}, @defaults={:controller=>"orders", :action=>"new"}, @to_s="GET /orders/new(.:format)? {:controller=>\"orders\", :action=>\"new\"}">, #<ActionController::Routing::Route:0x97a5c9c @segments=[#<ActionController::Routing::DividerSegment:0x97a6690 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x97a6594 @is_optional=false, @value="orders">, #<ActionController::Routing::DividerSegment:0x97a647c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x97a6380 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::DividerSegment:0x97a6268 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x97a616c @is_optional=false, @value="edit">, #<ActionController::Routing::OptionalFormatSegment:0x97a60a8 @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"edit"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="orders", @action_requirement="edit", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"edit"}, @defaults={:controller=>"orders", :action=>"edit"}, @to_s="GET /orders/:id/edit(.:format)? {:controller=>\"orders\", :action=>\"edit\"}">, #<ActionController::Routing::Route:0x9bbabe4 @segments=[#<ActionController::Routing::DividerSegment:0x9bbb3c4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9bbb2c8 @is_optional=false, @value="orders">, #<ActionController::Routing::DividerSegment:0x9bbb1b0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9bbb0b4 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x9bbaff0 @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"show"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="orders", @action_requirement="show", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"show"}, @defaults={:controller=>"orders", :action=>"show"}, @to_s="GET /orders/:id(.:format)? {:controller=>\"orders\", :action=>\"show\"}">, #<ActionController::Routing::Route:0x97cfd7c @segments=[#<ActionController::Routing::DividerSegment:0x9720f90 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9720e94 @is_optional=false, @value="orders">, #<ActionController::Routing::DividerSegment:0x9720d7c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9720c80 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x9720bbc @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"update"}, @conditions={:method=>:put}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="orders", @action_requirement="update", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"update"}, @defaults={:controller=>"orders", :action=>"update"}, @to_s="PUT /orders/:id(.:format)? {:controller=>\"orders\", :action=>\"update\"}">, #<ActionController::Routing::Route:0x9b562e0 @segments=[#<ActionController::Routing::DividerSegment:0x9b56ac0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9b569c4 @is_optional=false, @value="orders">, #<ActionController::Routing::DividerSegment:0x9b568ac @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9b567b0 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x9b566ec @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"destroy"}, @conditions={:method=>:delete}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="orders", @action_requirement="destroy", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"destroy"}, @defaults={:controller=>"orders", :action=>"destroy"}, @to_s="DELETE /orders/:id(.:format)? {:controller=>\"orders\", :action=>\"destroy\"}">, #<ActionController::Routing::Route:0x9584444 @segments=[#<ActionController::Routing::DividerSegment:0x9584930 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9584834 @is_optional=false, @value="products">, #<ActionController::Routing::OptionalFormatSegment:0x9584770 @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"index"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="products", @action_requirement="index", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"index"}, @defaults={:controller=>"products", :action=>"index"}, @to_s="GET /products(.:format)? {:controller=>\"products\", :action=>\"index\"}">, #<ActionController::Routing::Route:0x994afa4 @segments=[#<ActionController::Routing::DividerSegment:0x994b490 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x994b394 @is_optional=false, @value="products">, #<ActionController::Routing::OptionalFormatSegment:0x994b2d0 @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"create"}, @conditions={:method=>:post}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="products", @action_requirement="create", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"create"}, @defaults={:controller=>"products", :action=>"create"}, @to_s="POST /products(.:format)? {:controller=>\"products\", :action=>\"create\"}">, #<ActionController::Routing::Route:0x933f9f4 @segments=[#<ActionController::Routing::DividerSegment:0x93400f4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x933fff8 @is_optional=false, @value="products">, #<ActionController::Routing::DividerSegment:0x933fee0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x933fde4 @is_optional=false, @value="new">, #<ActionController::Routing::OptionalFormatSegment:0x933fd20 @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"new"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="products", @action_requirement="new", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"new"}, @defaults={:controller=>"products", :action=>"new"}, @to_s="GET /products/new(.:format)? {:controller=>\"products\", :action=>\"new\"}">, #<ActionController::Routing::Route:0x9c45e38 @segments=[#<ActionController::Routing::DividerSegment:0x9c4682c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9c46730 @is_optional=false, @value="products">, #<ActionController::Routing::DividerSegment:0x9c46618 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9c4651c @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::DividerSegment:0x9c46404 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9c46308 @is_optional=false, @value="edit">, #<ActionController::Routing::OptionalFormatSegment:0x9c46244 @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"edit"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="products", @action_requirement="edit", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"edit"}, @defaults={:controller=>"products", :action=>"edit"}, @to_s="GET /products/:id/edit(.:format)? {:controller=>\"products\", :action=>\"edit\"}">, #<ActionController::Routing::Route:0x9cc1614 @segments=[#<ActionController::Routing::DividerSegment:0x9cc1df4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9cc1cf8 @is_optional=false, @value="products">, #<ActionController::Routing::DividerSegment:0x9cc1be0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9cc1ae4 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x9cc1a20 @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"show"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="products", @action_requirement="show", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"show"}, @defaults={:controller=>"products", :action=>"show"}, @to_s="GET /products/:id(.:format)? {:controller=>\"products\", :action=>\"show\"}">, #<ActionController::Routing::Route:0x9b9f4dc @segments=[#<ActionController::Routing::DividerSegment:0x9b9fcbc @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9b9fbc0 @is_optional=false, @value="products">, #<ActionController::Routing::DividerSegment:0x9b9faa8 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9b9f9ac @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x9b9f8e8 @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"update"}, @conditions={:method=>:put}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="products", @action_requirement="update", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"update"}, @defaults={:controller=>"products", :action=>"update"}, @to_s="PUT /products/:id(.:format)? {:controller=>\"products\", :action=>\"update\"}">, #<ActionController::Routing::Route:0x97f9238 @segments=[#<ActionController::Routing::DividerSegment:0x93a8070 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x93a7f74 @is_optional=false, @value="products">, #<ActionController::Routing::DividerSegment:0x93a7e5c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x93a7d60 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x93a7c9c @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"destroy"}, @conditions={:method=>:delete}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="products", @action_requirement="destroy", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"destroy"}, @defaults={:controller=>"products", :action=>"destroy"}, @to_s="DELETE /products/:id(.:format)? {:controller=>\"products\", :action=>\"destroy\"}">, #<ActionController::Routing::Route:0x939dbb8 @segments=[#<ActionController::Routing::DividerSegment:0x939e440 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::ControllerSegment:0x939e344 @is_optional=false, @key=:controller>, #<ActionController::Routing::DividerSegment:0x939e22c @is_optional=true, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x939e130 @is_optional=true, @key=:action, @default="index">, #<ActionController::Routing::DividerSegment:0x939e018 @is_optional=true, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x939df1c @is_optional=true, @key=:id>, #<ActionController::Routing::DividerSegment:0x939de04 @is_optional=true, @value="/", @raw=true>], @requirements={}, @conditions={}, @significant_keys=[:controller, :action, :id], @optimise=false, @controller_requirement=nil, @action_requirement=nil, @matching_prepared=true, @parameter_shell={}, @defaults={:action=>"index"}, @to_s="ANY /:controller/:action/:id/ {}">, #<ActionController::Routing::Route:0x9965af8 @segments=[#<ActionController::Routing::DividerSegment:0x9966348 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::ControllerSegment:0x996624c @is_optional=false, @key=:controller>, #<ActionController::Routing::DividerSegment:0x9966134 @is_optional=true, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9966038 @is_optional=true, @key=:action, @default="index">, #<ActionController::Routing::DividerSegment:0x9965f20 @is_optional=true, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9965e24 @is_optional=true, @key=:id>, #<ActionController::Routing::OptionalFormatSegment:0x9965d60 @is_optional=true, @key=:format>], @requirements={}, @conditions={}, @significant_keys=[:controller, :action, :id, :format], @optimise=false, @controller_requirement=nil, @action_requirement=nil, @matching_prepared=true, @parameter_shell={}, @defaults={:action=>"index"}, @to_s="ANY /:controller/:action/:id(.:format)? {}">], @named_routes=#<ActionController::Routing::RouteSet::NamedRouteCollection:0x8c74328 @routes={:users=>#<ActionController::Routing::Route:0x9b95698 @segments=[#<ActionController::Routing::DividerSegment:0x9b95c2c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9b95b14 @is_optional=false, @value="users">, #<ActionController::Routing::OptionalFormatSegment:0x9b95a50 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"index"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="users", @action_requirement="index", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"index"}, @defaults={:controller=>"users", :action=>"index"}, @to_s="GET /users(.:format)? {:controller=>\"users\", :action=>\"index\"}">, :new_user=>#<ActionController::Routing::Route:0x9b054a4 @segments=[#<ActionController::Routing::DividerSegment:0x9b066b0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9b06544 @is_optional=false, @value="users">, #<ActionController::Routing::DividerSegment:0x9b063bc @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9b06250 @is_optional=false, @value="new">, #<ActionController::Routing::OptionalFormatSegment:0x9b0618c @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"new"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="users", @action_requirement="new", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"new"}, @defaults={:controller=>"users", :action=>"new"}, @to_s="GET /users/new(.:format)? {:controller=>\"users\", :action=>\"new\"}">, :edit_user=>#<ActionController::Routing::Route:0x99d0880 @segments=[#<ActionController::Routing::DividerSegment:0x99d169c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x99d1530 @is_optional=false, @value="users">, #<ActionController::Routing::DividerSegment:0x99d138c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x99d1220 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::DividerSegment:0x99d1098 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x99d0f48 @is_optional=false, @value="edit">, #<ActionController::Routing::OptionalFormatSegment:0x99d0e68 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"edit"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="users", @action_requirement="edit", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"edit"}, @defaults={:controller=>"users", :action=>"edit"}, @to_s="GET /users/:id/edit(.:format)? {:controller=>\"users\", :action=>\"edit\"}">, :user=>#<ActionController::Routing::Route:0x98686d8 @segments=[#<ActionController::Routing::DividerSegment:0x9869040 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9868f28 @is_optional=false, @value="users">, #<ActionController::Routing::DividerSegment:0x9868df4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9868cc0 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x9868be0 @is_optional=true, @key=:format>], @requirements={:controller=>"users", :action=>"show"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="users", @action_requirement="show", @matching_prepared=true, @parameter_shell={:controller=>"users", :action=>"show"}, @defaults={:controller=>"users", :action=>"show"}, @to_s="GET /users/:id(.:format)? {:controller=>\"users\", :action=>\"show\"}">, :line_items=>#<ActionController::Routing::Route:0x95ef6b8 @segments=[#<ActionController::Routing::DividerSegment:0x95efc68 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x95efb34 @is_optional=false, @value="line_items">, #<ActionController::Routing::OptionalFormatSegment:0x95efa38 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"index"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="line_items", @action_requirement="index", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"index"}, @defaults={:controller=>"line_items", :action=>"index"}, @to_s="GET /line_items(.:format)? {:controller=>\"line_items\", :action=>\"index\"}">, :new_line_item=>#<ActionController::Routing::Route:0x911cf20 @segments=[#<ActionController::Routing::DividerSegment:0x91e4330 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x91d9e94 @is_optional=false, @value="line_items">, #<ActionController::Routing::DividerSegment:0x9143eac @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9140c78 @is_optional=false, @value="new">, #<ActionController::Routing::OptionalFormatSegment:0x9122764 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"new"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="line_items", @action_requirement="new", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"new"}, @defaults={:controller=>"line_items", :action=>"new"}, @to_s="GET /line_items/new(.:format)? {:controller=>\"line_items\", :action=>\"new\"}">, :edit_line_item=>#<ActionController::Routing::Route:0x8d18ccc @segments=[#<ActionController::Routing::DividerSegment:0x8d1b720 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x8d1b5d0 @is_optional=false, @value="line_items">, #<ActionController::Routing::DividerSegment:0x8d1b448 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x8d1b2f8 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::DividerSegment:0x8d1b090 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x8d1af40 @is_optional=false, @value="edit">, #<ActionController::Routing::OptionalFormatSegment:0x8d1ab50 @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"edit"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="line_items", @action_requirement="edit", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"edit"}, @defaults={:controller=>"line_items", :action=>"edit"}, @to_s="GET /line_items/:id/edit(.:format)? {:controller=>\"line_items\", :action=>\"edit\"}">, :line_item=>#<ActionController::Routing::Route:0x8ae6df4 @segments=[#<ActionController::Routing::DividerSegment:0x8b207e0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x8b20230 @is_optional=false, @value="line_items">, #<ActionController::Routing::DividerSegment:0x8b0814c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x8b058f0 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x8b0520c @is_optional=true, @key=:format>], @requirements={:controller=>"line_items", :action=>"show"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="line_items", @action_requirement="show", @matching_prepared=true, @parameter_shell={:controller=>"line_items", :action=>"show"}, @defaults={:controller=>"line_items", :action=>"show"}, @to_s="GET /line_items/:id(.:format)? {:controller=>\"line_items\", :action=>\"show\"}">, :orders=>#<ActionController::Routing::Route:0x886b038 @segments=[#<ActionController::Routing::DividerSegment:0x886dcf4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x886db18 @is_optional=false, @value="orders">, #<ActionController::Routing::OptionalFormatSegment:0x886b850 @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"index"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="orders", @action_requirement="index", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"index"}, @defaults={:controller=>"orders", :action=>"index"}, @to_s="GET /orders(.:format)? {:controller=>\"orders\", :action=>\"index\"}">, :new_order=>#<ActionController::Routing::Route:0x86cd778 @segments=[#<ActionController::Routing::DividerSegment:0x86d0370 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x86cfc1c @is_optional=false, @value="orders">, #<ActionController::Routing::DividerSegment:0x86cf618 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x86cef6c @is_optional=false, @value="new">, #<ActionController::Routing::OptionalFormatSegment:0x86ceb7c @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"new"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="orders", @action_requirement="new", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"new"}, @defaults={:controller=>"orders", :action=>"new"}, @to_s="GET /orders/new(.:format)? {:controller=>\"orders\", :action=>\"new\"}">, :edit_order=>#<ActionController::Routing::Route:0x855c0d8 @segments=[#<ActionController::Routing::DividerSegment:0x855f8a0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x855f6a8 @is_optional=false, @value="orders">, #<ActionController::Routing::DividerSegment:0x855f408 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x855f114 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::DividerSegment:0x855d93c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x855d798 @is_optional=false, @value="edit">, #<ActionController::Routing::OptionalFormatSegment:0x855d54c @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"edit"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="orders", @action_requirement="edit", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"edit"}, @defaults={:controller=>"orders", :action=>"edit"}, @to_s="GET /orders/:id/edit(.:format)? {:controller=>\"orders\", :action=>\"edit\"}">, :order=>#<ActionController::Routing::Route:0x83a7e2c @segments=[#<ActionController::Routing::DividerSegment:0x83add8c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x83ad5c8 @is_optional=false, @value="orders">, #<ActionController::Routing::DividerSegment:0x83ad0a4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x83a9674 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x83a9284 @is_optional=true, @key=:format>], @requirements={:controller=>"orders", :action=>"show"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="orders", @action_requirement="show", @matching_prepared=true, @parameter_shell={:controller=>"orders", :action=>"show"}, @defaults={:controller=>"orders", :action=>"show"}, @to_s="GET /orders/:id(.:format)? {:controller=>\"orders\", :action=>\"show\"}">, :products=>#<ActionController::Routing::Route:0x81b01c8 @segments=[#<ActionController::Routing::DividerSegment:0x81b10a8 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x81b0aa4 @is_optional=false, @value="products">, #<ActionController::Routing::OptionalFormatSegment:0x81b083c @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"index"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="products", @action_requirement="index", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"index"}, @defaults={:controller=>"products", :action=>"index"}, @to_s="GET /products(.:format)? {:controller=>\"products\", :action=>\"index\"}">, :new_product=>#<ActionController::Routing::Route:0x9678b30 @segments=[#<ActionController::Routing::DividerSegment:0x9679230 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9679134 @is_optional=false, @value="products">, #<ActionController::Routing::DividerSegment:0x967901c @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9678f20 @is_optional=false, @value="new">, #<ActionController::Routing::OptionalFormatSegment:0x9678e5c @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"new"}, @conditions={:method=>:get}, @significant_keys=[:format, :controller, :action], @optimise=true, @controller_requirement="products", @action_requirement="new", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"new"}, @defaults={:controller=>"products", :action=>"new"}, @to_s="GET /products/new(.:format)? {:controller=>\"products\", :action=>\"new\"}">, :edit_product=>#<ActionController::Routing::Route:0x9bd50e0 @segments=[#<ActionController::Routing::DividerSegment:0x9bd5ad4 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9bd59d8 @is_optional=false, @value="products">, #<ActionController::Routing::DividerSegment:0x9bd58c0 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9bd57c4 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::DividerSegment:0x9bd56ac @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x9bd55b0 @is_optional=false, @value="edit">, #<ActionController::Routing::OptionalFormatSegment:0x9bd54ec @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"edit"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="products", @action_requirement="edit", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"edit"}, @defaults={:controller=>"products", :action=>"edit"}, @to_s="GET /products/:id/edit(.:format)? {:controller=>\"products\", :action=>\"edit\"}">, :product=>#<ActionController::Routing::Route:0x9755fa8 @segments=[#<ActionController::Routing::DividerSegment:0x9756788 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::StaticSegment:0x975668c @is_optional=false, @value="products">, #<ActionController::Routing::DividerSegment:0x9756574 @is_optional=false, @value="/", @raw=true>, #<ActionController::Routing::DynamicSegment:0x9756478 @is_optional=false, @key=:id, @regexp=/[^\/.?]+/>, #<ActionController::Routing::OptionalFormatSegment:0x97563b4 @is_optional=true, @key=:format>], @requirements={:controller=>"products", :action=>"show"}, @conditions={:method=>:get}, @significant_keys=[:id, :format, :controller, :action], @optimise=false, @controller_requirement="products", @action_requirement="show", @matching_prepared=true, @parameter_shell={:controller=>"products", :action=>"show"}, @defaults={:controller=>"products", :action=>"show"}, @to_s="GET /products/:id(.:format)? {:controller=>\"products\", :action=>\"show\"}">}, @helpers=[: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_edit_user_url, :edit_user_url, :hash_for_edit_user_path, :edit_user_path, :hash_for_user_url, :user_url, :hash_for_user_path, :user_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_edit_line_item_url, :edit_line_item_url, :hash_for_edit_line_item_path, :edit_line_item_path, :hash_for_line_item_url, :line_item_url, :hash_for_line_item_path, :line_item_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_edit_order_url, :edit_order_url, :hash_for_edit_order_path, :edit_order_path, :hash_for_order_url, :order_url, :hash_for_order_path, :order_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_edit_product_url, :edit_product_url, :hash_for_edit_product_path, :edit_product_path, :hash_for_product_url, :product_url, :hash_for_product_path, :product_path], @module=#<Module:0x8c74280>>, @combined_regexp=nil, @routes_by_controller=nil, @builder=#<ActionController::Routing::RouteBuilder:0x9b962bc @separators=["/", ".", "?"], @optional_separators=["/"], @separator_regexp=/[\/\.\?]/, @nonseparator_regexp=/\A([^\/\.\?]+)/, @interval_regexp=/(.*?)((?-mix:[\/\.\?])|$)/>, @routes_last_modified=2010-05-28 03:13:17 -0400>
>> app = ActionController::Integration::Session.new
=> #<ActionController::Integration::Session:0x9c44008 @application=#<ActionController::Dispatcher:0x9c43f98 @output=#<IO:<STDOUT>>>, @headers=nil, @path=nil, @status=nil, @status_message=nil, @result=nil, @https=false, @cookies={}, @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/edit(.:format)? {:controller=>"users", :action=>"edit"}
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 /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/edit(.:format)? {:controller=>"line_items", :action=>"edit"}
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 /orders(.:format)? {:controller=>"orders", :action=>"index"}
POST /orders(.:format)? {:controller=>"orders", :action=>"create"}
GET /orders/new(.:format)? {:controller=>"orders", :action=>"new"}
GET /orders/:id/edit(.:format)? {:controller=>"orders", :action=>"edit"}
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 /products(.:format)? {:controller=>"products", :action=>"index"}
POST /products(.:format)? {:controller=>"products", :action=>"create"}
GET /products/new(.:format)? {:controller=>"products", :action=>"new"}
GET /products/:id/edit(.:format)? {:controller=>"products", :action=>"edit"}
GET /products/:id(.:format)? {:controller=>"products", :action=>"show"}
PUT /products/:id(.:format)? {:controller=>"products", :action=>"update"}
DELETE /products/:id(.:format)? {:controller=>"products", :action=>"destroy"}
ANY /:controller/:action/:id/ {}
ANY /:controller/:action/:id(.:format)? {}
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/edit(.:format)? {:controller=>"users", :action=>"edit"}
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 /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/edit(.:format)? {:controller=>"line_items", :action=>"edit"}
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 /orders(.:format)? {:controller=>"orders", :action=>"index"}
POST /orders(.:format)? {:controller=>"orders", :action=>"create"}
GET /orders/new(.:format)? {:controller=>"orders", :action=>"new"}
GET /orders/:id/edit(.:format)? {:controller=>"orders", :action=>"edit"}
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 /products(.:format)? {:controller=>"products", :action=>"index"}
POST /products(.:format)? {:controller=>"products", :action=>"create"}
GET /products/new(.:format)? {:controller=>"products", :action=>"new"}
GET /products/:id/edit(.:format)? {:controller=>"products", :action=>"edit"}
GET /products/:id(.:format)? {:controller=>"products", :action=>"show"}
PUT /products/:id(.:format)? {:controller=>"products", :action=>"update"}
DELETE /products/:id(.:format)? {:controller=>"products", :action=>"destroy"}
ANY /:controller/:action/:id/ {}
ANY /:controller/:action/:id(.:format)? {}
=> 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"
>> rs.recognize_path "/coupon/show/1"
=> {:controller=>"coupon", :action=>"show", :id=>"1"}
>> load "config/routes.rb"
=> []
>> rs.recognize_path "/coupon/show/1"
=> {:controller=>"coupon", :action=>"show", :id=>"1"}
>> 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 app/controllers
create app/helpers
create app/models
create app/views/layouts
create config/environments
create config/initializers
create config/locales
create db
create doc
create lib
create lib/tasks
create log
create public/images
create public/javascripts
create public/stylesheets
create script/performance
create test/fixtures
create test/functional
create test/integration
create test/performance
create test/unit
create vendor
create vendor/plugins
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create Rakefile
create README
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create config/database.yml
create config/routes.rb
create config/locales/en.yml
create db/seeds.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/new_rails_defaults.rb
create config/initializers/session_store.rb
create config/initializers/cookie_verification_secret.rb
create config/environment.rb
create config/boot.rb
create config/environments/production.rb
create config/environments/development.rb
create config/environments/test.rb
create script/about
create script/console
create script/dbconsole
create script/destroy
create script/generate
create script/runner
create script/server
create script/plugin
create script/performance/benchmarker
create script/performance/profiler
create test/test_helper.rb
create test/performance/browsing_test.rb
create public/404.html
create public/422.html
create public/500.html
create public/index.html
create public/favicon.ico
create public/robots.txt
create public/images/rails.png
create public/javascripts/prototype.js
create public/javascripts/effects.js
create public/javascripts/dragdrop.js
create public/javascripts/controls.js
create public/javascripts/application.js
create doc/README_FOR_APP
create log/server.log
create log/production.log
create log/development.log
create log/test.log
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/config2/routes_for_blog.rb
>> require 'rubygems'
=> false
>> require 'action_controller'
=> true
>> ActionController::Base.session_store = nil
=> nil
>> ActionController::Routing.use_controllers! [ "article", "blog" ]
=> ["article", "blog"]
>> rs = ActionController::Routing::Routes
=> #<ActionController::Routing::RouteSet:0x93fe38c @configuration_files=[], @routes=[], @named_routes=#<ActionController::Routing::RouteSet::NamedRouteCollection:0x93fe338 @routes={}, @helpers=[], @module=#<Module:0x93fe2e4>>>
>> app = ActionController::Integration::Session.new
=> #<ActionController::Integration::Session:0x939e638 @application=#<ActionController::Dispatcher:0x915d378 @output=#<IO:<STDOUT>>, @app=#<Rack::Lock:0x939dd94 @app=#<ActionController::Failsafe:0x939de3c @app=#<ActionController::ParamsParser:0x939dee4 @app=#<Rack::MethodOverride:0x939dfc4 @app=#<Rack::Head:0x939e0a4 @app=#<ActionController::StringCoercion:0x939e168 @app=#<Proc:0x915d340@/home/rubys/git/awdwr/work-191-238/view/vendor/rails/actionpack/lib/action_controller/dispatcher.rb:130 (lambda)>>>>>>, @lock=#<Mutex:0x939dd78>>>, @headers=nil, @path=nil, @status=nil, @status_message=nil, @result=nil, @https=false, @cookies={}, @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/:controller/:action/:id"
>> # Catchall so we can gracefully handle badly formed requests
?> map.connect "*anything",
?> :controller => "blog",
?> :action => "unknown_request"
>> end
=> [ActionController::Base, ActionView::Base]
>> 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" }
DEPRECATION WARNING: The :overwrite_params option is deprecated. Specify all the necessary parameters instead. (called from url_for at /home/rubys/git/awdwr/work-191-238/view/vendor/rails/actionpack/lib/action_controller/integration.rb:244)
=> "http://www.example.com/blog/2002"
23.3 Helpers for Formatting, Linking, and Pagination 21 Action Controller: Routing and URLs