The Depot Application

The Depot Application

23.3 Helpers for Formatting, Linking, and Pagination 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
Switch to inspect mode.
>> require "./config/environment.rb"
=> true
>> require "rails/console/app"
=> true
 
>> rs = ActionController::Routing::Routes
=> #<ActionDispatch::Routing::RouteSet:0x00000002c3f3c8 @routes=[GET    /info/who_bought(.:format)               {:controller=>"info", :action=>"who_bought"}, GET    /admin/login(.:format)                   {:controller=>"admin", :action=>"login"}, GET    /admin/logout(.:format)                  {:controller=>"admin", :action=>"logout"}, GET    /admin/index(.:format)                   {:controller=>"admin", :action=>"index"}, GET    /users(.:format)                         {:action=>"index", :controller=>"users"}, POST   /users(.:format)                         {:action=>"create", :controller=>"users"}, GET    /users/new(.:format)                     {:action=>"new", :controller=>"users"}, GET    /users/:id/edit(.:format)                {:action=>"edit", :controller=>"users"}, GET    /users/:id(.:format)                     {:action=>"show", :controller=>"users"}, PUT    /users/:id(.:format)                     {:action=>"update", :controller=>"users"}, DELETE /users/:id(.:format)                     {:action=>"destroy", :controller=>"users"}, GET    /line_items(.:format)                    {:action=>"index", :controller=>"line_items"}, POST   /line_items(.:format)                    {:action=>"create", :controller=>"line_items"}, GET    /line_items/new(.:format)                {:action=>"new", :controller=>"line_items"}, GET    /line_items/:id/edit(.:format)           {:action=>"edit", :controller=>"line_items"}, GET    /line_items/:id(.:format)                {:action=>"show", :controller=>"line_items"}, PUT    /line_items/:id(.:format)                {:action=>"update", :controller=>"line_items"}, DELETE /line_items/:id(.:format)                {:action=>"destroy", :controller=>"line_items"}, GET    /orders(.:format)                        {:action=>"index", :controller=>"orders"}, POST   /orders(.:format)                        {:action=>"create", :controller=>"orders"}, GET    /orders/new(.:format)                    {:action=>"new", :controller=>"orders"}, GET    /orders/:id/edit(.:format)               {:action=>"edit", :controller=>"orders"}, GET    /orders/:id(.:format)                    {:action=>"show", :controller=>"orders"}, PUT    /orders/:id(.:format)                    {:action=>"update", :controller=>"orders"}, DELETE /orders/:id(.:format)                    {:action=>"destroy", :controller=>"orders"}, GET    /store/index(.:format)                   {:controller=>"store", :action=>"index"}, GET    /products(.:format)                      {:action=>"index", :controller=>"products"}, POST   /products(.:format)                      {:action=>"create", :controller=>"products"}, GET    /products/new(.:format)                  {:action=>"new", :controller=>"products"}, GET    /products/:id/edit(.:format)             {:action=>"edit", :controller=>"products"}, GET    /products/:id(.:format)                  {:action=>"show", :controller=>"products"}, PUT    /products/:id(.:format)                  {:action=>"update", :controller=>"products"}, DELETE /products/:id(.:format)                  {:action=>"destroy", :controller=>"products"}, ANY    /:controller(/:action(/:id(.:format)))   {}, ANY    /rails/info/properties(.:format)         {:controller=>"rails/info", :action=>"properties"}], @named_routes=#<ActionDispatch::Routing::RouteSet::NamedRouteCollection:0x00000002c892e8 @routes={:info_who_bought=>GET    /info/who_bought(.:format)               {:controller=>"info", :action=>"who_bought"}, :admin_login=>GET    /admin/login(.:format)                   {:controller=>"admin", :action=>"login"}, :admin_logout=>GET    /admin/logout(.:format)                  {:controller=>"admin", :action=>"logout"}, :admin_index=>GET    /admin/index(.:format)                   {:controller=>"admin", :action=>"index"}, :users=>GET    /users(.:format)                         {:action=>"index", :controller=>"users"}, :new_user=>GET    /users/new(.:format)                     {:action=>"new", :controller=>"users"}, :edit_user=>GET    /users/:id/edit(.:format)                {:action=>"edit", :controller=>"users"}, :user=>GET    /users/:id(.:format)                     {:action=>"show", :controller=>"users"}, :line_items=>GET    /line_items(.:format)                    {:action=>"index", :controller=>"line_items"}, :new_line_item=>GET    /line_items/new(.:format)                {:action=>"new", :controller=>"line_items"}, :edit_line_item=>GET    /line_items/:id/edit(.:format)           {:action=>"edit", :controller=>"line_items"}, :line_item=>GET    /line_items/:id(.:format)                {:action=>"show", :controller=>"line_items"}, :orders=>GET    /orders(.:format)                        {:action=>"index", :controller=>"orders"}, :new_order=>GET    /orders/new(.:format)                    {:action=>"new", :controller=>"orders"}, :edit_order=>GET    /orders/:id/edit(.:format)               {:action=>"edit", :controller=>"orders"}, :order=>GET    /orders/:id(.:format)                    {:action=>"show", :controller=>"orders"}, :store_index=>GET    /store/index(.:format)                   {:controller=>"store", :action=>"index"}, :products=>GET    /products(.:format)                      {:action=>"index", :controller=>"products"}, :new_product=>GET    /products/new(.:format)                  {:action=>"new", :controller=>"products"}, :edit_product=>GET    /products/:id/edit(.:format)             {:action=>"edit", :controller=>"products"}, :product=>GET    /products/:id(.:format)                  {:action=>"show", :controller=>"products"}, :rails_info_properties=>ANY    /rails/info/properties(.:format)         {:controller=>"rails/info", :action=>"properties"}}, @helpers=[:hash_for_info_who_bought_url, :info_who_bought_url, :hash_for_info_who_bought_path, :info_who_bought_path, :hash_for_admin_login_url, :admin_login_url, :hash_for_admin_login_path, :admin_login_path, :hash_for_admin_logout_url, :admin_logout_url, :hash_for_admin_logout_path, :admin_logout_path, :hash_for_admin_index_url, :admin_index_url, :hash_for_admin_index_path, :admin_index_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_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_store_index_url, :store_index_url, :hash_for_store_index_path, :store_index_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, :hash_for_rails_info_properties_url, :rails_info_properties_url, :hash_for_rails_info_properties_path, :rails_info_properties_path], @module=#<Module:0x00000002c88d48>>, @resources_path_names={:new=>"new", :edit=>"edit"}, @controller_namespaces=#<Set: {}>, @default_url_options={}, @request_class=ActionDispatch::Request, @valid_conditions=[:auth_type, :gateway_interface, :path_translated, :remote_host, :remote_ident, :remote_user, :remote_addr, :server_name, :server_protocol, :accept, :accept_charset, :accept_encoding, :accept_language, :cache_control, :from, :negotiate, :pragma, :key?, :request_method, :request_method_symbol, :method, :method_symbol, :get?, :post?, :put?, :delete?, :head?, :headers, :fullpath, :forgery_whitelisted?, :forgery_whitelisted_with_deprecation?, :forgery_whitelisted_without_deprecation?, :media_type, :content_length, :xml_http_request?, :xhr?, :ip, :remote_ip, :server_software, :raw_post, :body, :form_data?, :body_stream, :reset_session, :session=, :session_options=, :GET, :query_parameters, :POST, :request_parameters, :authorization, :local?, :url, :scheme, :protocol, :ssl?, :raw_host_with_port, :host, :host_with_port, :port, :standard_port, :standard_port?, :port_string, :server_port, :domain, :subdomains, :subdomain, :request_uri, :filtered_parameters, :filtered_env, :filtered_path, :parameters, :params, :path_parameters=, :symbolized_path_parameters, :path_parameters, :content_mime_type, :content_type, :accepts, :format, :formats, :format=, :negotiate_mime, :if_modified_since, :if_none_match, :not_modified?, :etag_matches?, :fresh?, :env, :script_name, :path_info, :query_string, :session, :session_options, :logger, :media_type_params, :content_charset, :script_name=, :path_info=, :options?, :trace?, :parseable_data?, :[], :[]=, :values_at, :referer, :referrer, :user_agent, :cookies, :path, :psych_to_yaml, :to_yaml_properties, :to_yaml, :blank?, :present?, :presence, :duplicable?, :acts_like?, :try, :html_safe?, :dclone, :is_haml?, :`, :returning, :to_param, :to_query, :instance_values, :instance_variable_names, :copy_instance_variables_from, :to_json, :with_options, :require_or_load, :require_dependency, :require_association, :load_dependency, :load, :require, :unloadable, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, :initialize_dup, :initialize_clone, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :to_s, :inspect, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :instance_of?, :kind_of?, :is_a?, :tap, :send, :public_send, :respond_to?, :respond_to_missing?, :extend, :display, :public_method, :define_singleton_method, :__id__, :object_id, :to_enum, :enum_for, :gem, :psych_y, :y, :silence_warnings, :enable_warnings, :with_warnings, :silence_stderr, :silence_stream, :suppress, :class_eval, :require_library_or_gem, :debugger, :breakpoint, :==, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__, :controller, :action], @disable_clear_and_finalize=false, @controller_constraints=nil, @finalized=false, @set=#<Rack::Mount::RouteSet:0x00000002a17e38 @parameters_key="action_dispatch.request.path_parameters", @named_routes={:info_who_bought=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000029240a8 @defaults={:controller=>"info", :action=>"who_bought"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/info\/who_bought(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"info", :action=>"who_bought"} @name=:info_who_bought>, :admin_login=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002adb1a8 @defaults={:controller=>"admin", :action=>"login"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/login(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"login"} @name=:admin_login>, :admin_logout=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a87328 @defaults={:controller=>"admin", :action=>"logout"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/logout(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"logout"} @name=:admin_logout>, :admin_index=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a192b0 @defaults={:controller=>"admin", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"index"} @name=:admin_index>, :users=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002986a00 @defaults={:action=>"index", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"index", :controller=>"users"} @name=:users>, :new_user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000292be20 @defaults={:action=>"new", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"new", :controller=>"users"} @name=:new_user>, :edit_user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000028d9ff8 @defaults={:action=>"edit", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"edit", :controller=>"users"} @name=:edit_user>, :user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000289dc10 @defaults={:action=>"show", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"show", :controller=>"users"} @name=:user>, :line_items=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000285d4a8 @defaults={:action=>"index", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"index", :controller=>"line_items"} @name=:line_items>, :new_line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000028329d8 @defaults={:action=>"new", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"new", :controller=>"line_items"} @name=:new_line_item>, :edit_line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027e0660 @defaults={:action=>"edit", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"edit", :controller=>"line_items"} @name=:edit_line_item>, :line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027bf4d8 @defaults={:action=>"show", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"show", :controller=>"line_items"} @name=:line_item>, :orders=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027513c0 @defaults={:action=>"index", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"index", :controller=>"orders"} @name=:orders>, :new_order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027222a0 @defaults={:action=>"new", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"new", :controller=>"orders"} @name=:new_order>, :edit_order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002708c38 @defaults={:action=>"edit", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"edit", :controller=>"orders"} @name=:edit_order>, :order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000026c9bf0 @defaults={:action=>"show", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"show", :controller=>"orders"} @name=:order>, :store_index=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002692448 @defaults={:controller=>"store", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/store\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"store", :action=>"index"} @name=:store_index>, :products=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002661e88 @defaults={:action=>"index", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"index", :controller=>"products"} @name=:products>, :new_product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002645940 @defaults={:action=>"new", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"new", :controller=>"products"} @name=:new_product>, :edit_product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002638330 @defaults={:action=>"edit", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"edit", :controller=>"products"} @name=:edit_product>, :product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000025b6e20 @defaults={:action=>"show", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"show", :controller=>"products"} @name=:product>, :rails_info_properties=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000252f380 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>}, @recognition_key_analyzer=#<Rack::Mount::Analysis::Splitting:0x00000002a17dc0 @boundaries={:path_info=>{"t"=>6, "."=>34, "n"=>1, "x"=>2, "s"=>9, "w"=>4, "/"=>22}, :request_method=>{}}, @raw_keys=[{:path_info=>/\A\/info\/who_bought(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/admin\/login(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/admin\/logout(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/admin\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/}, {:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/}, {:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/}, {:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/}, {:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/}, {:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/}, {:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/}, {:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/}, {:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/}, {:path_info=>/\A\/store\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/}, {:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/}, {:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/}, {:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/}, {:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/}, {:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/}], @key_frequency={}, @report=nil, @possible_keys=nil>, @generation_key_analyzer=#<Rack::Mount::Analysis::Frequency:0x00000002a17b18 @raw_keys=[{:controller=>"info", :action=>"who_bought"}, {:controller=>"admin", :action=>"login"}, {:controller=>"admin", :action=>"logout"}, {:controller=>"admin", :action=>"index"}, {:action=>"index", :controller=>"users"}, {:action=>"create", :controller=>"users"}, {:action=>"new", :controller=>"users"}, {:action=>"edit", :controller=>"users"}, {:action=>"show", :controller=>"users"}, {:action=>"update", :controller=>"users"}, {:action=>"destroy", :controller=>"users"}, {:action=>"index", :controller=>"line_items"}, {:action=>"create", :controller=>"line_items"}, {:action=>"new", :controller=>"line_items"}, {:action=>"edit", :controller=>"line_items"}, {:action=>"show", :controller=>"line_items"}, {:action=>"update", :controller=>"line_items"}, {:action=>"destroy", :controller=>"line_items"}, {:action=>"index", :controller=>"orders"}, {:action=>"create", :controller=>"orders"}, {:action=>"new", :controller=>"orders"}, {:action=>"edit", :controller=>"orders"}, {:action=>"show", :controller=>"orders"}, {:action=>"update", :controller=>"orders"}, {:action=>"destroy", :controller=>"orders"}, {:controller=>"store", :action=>"index"}, {:action=>"index", :controller=>"products"}, {:action=>"create", :controller=>"products"}, {:action=>"new", :controller=>"products"}, {:action=>"edit", :controller=>"products"}, {:action=>"show", :controller=>"products"}, {:action=>"update", :controller=>"products"}, {:action=>"destroy", :controller=>"products"}, {}, {:controller=>"rails/info", :action=>"properties"}], @key_frequency={}, @report=nil, @possible_keys=nil>, @request_class=ActionDispatch::Request, @valid_conditions=[:auth_type, :gateway_interface, :path_translated, :remote_host, :remote_ident, :remote_user, :remote_addr, :server_name, :server_protocol, :accept, :accept_charset, :accept_encoding, :accept_language, :cache_control, :from, :negotiate, :pragma, :key?, :request_method, :request_method_symbol, :method, :method_symbol, :get?, :post?, :put?, :delete?, :head?, :headers, :fullpath, :forgery_whitelisted?, :forgery_whitelisted_with_deprecation?, :forgery_whitelisted_without_deprecation?, :media_type, :content_length, :xml_http_request?, :xhr?, :ip, :remote_ip, :server_software, :raw_post, :body, :form_data?, :body_stream, :reset_session, :session=, :session_options=, :GET, :query_parameters, :POST, :request_parameters, :authorization, :local?, :cookie_jar, :flash, :url, :scheme, :protocol, :ssl?, :raw_host_with_port, :host, :host_with_port, :port, :standard_port, :standard_port?, :port_string, :server_port, :domain, :subdomains, :subdomain, :request_uri, :filtered_parameters, :filtered_env, :filtered_path, :parameters, :params, :path_parameters=, :symbolized_path_parameters, :path_parameters, :content_mime_type, :content_type, :accepts, :format, :formats, :format=, :negotiate_mime, :if_modified_since, :if_none_match, :not_modified?, :etag_matches?, :fresh?, :env, :script_name, :path_info, :query_string, :session, :session_options, :logger, :media_type_params, :content_charset, :script_name=, :path_info=, :options?, :trace?, :parseable_data?, :[], :[]=, :values_at, :referer, :referrer, :user_agent, :cookies, :path, :psych_to_yaml, :to_yaml_properties, :to_yaml, :blank?, :present?, :presence, :duplicable?, :acts_like?, :try, :html_safe?, :dclone, :is_haml?, :`, :returning, :to_param, :to_query, :instance_values, :instance_variable_names, :copy_instance_variables_from, :to_json, :with_options, :as_json, :require_or_load, :require_dependency, :require_association, :load_dependency, :load, :require, :unloadable, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, :initialize_dup, :initialize_clone, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :to_s, :inspect, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :instance_of?, :kind_of?, :is_a?, :tap, :send, :public_send, :respond_to?, :respond_to_missing?, :extend, :display, :public_method, :define_singleton_method, :__id__, :object_id, :to_enum, :enum_for, :gem, :psych_y, :y, :silence_warnings, :enable_warnings, :with_warnings, :silence_stderr, :silence_stream, :suppress, :class_eval, :require_library_or_gem, :debugger, :breakpoint, :suppress_warnings, :==, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__], @optimized_recognize_defined=false, @routes=[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000029240a8 @defaults={:controller=>"info", :action=>"who_bought"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/info\/who_bought(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"info", :action=>"who_bought"} @name=:info_who_bought>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002adb1a8 @defaults={:controller=>"admin", :action=>"login"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/login(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"login"} @name=:admin_login>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a87328 @defaults={:controller=>"admin", :action=>"logout"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/logout(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"logout"} @name=:admin_logout>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a192b0 @defaults={:controller=>"admin", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"index"} @name=:admin_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002986a00 @defaults={:action=>"index", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x000000029518a0 @defaults={:action=>"create", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"users"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000292be20 @defaults={:action=>"new", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x000000028d9ff8 @defaults={:action=>"edit", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x0000000289dc10 @defaults={:action=>"show", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x00000002870238 @defaults={:action=>"update", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"users"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000286a720 @defaults={:action=>"destroy", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"users"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000285d4a8 @defaults={:action=>"index", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x0000000283be48 @defaults={:action=>"create", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"line_items"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000028329d8 @defaults={:action=>"new", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x000000027e0660 @defaults={:action=>"edit", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x000000027bf4d8 @defaults={:action=>"show", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x0000000277c368 @defaults={:action=>"update", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"line_items"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000276e4e8 @defaults={:action=>"destroy", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"line_items"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027513c0 @defaults={:action=>"index", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x0000000272df60 @defaults={:action=>"create", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"orders"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027222a0 @defaults={:action=>"new", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x00000002708c38 @defaults={:action=>"edit", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x000000026c9bf0 @defaults={:action=>"show", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x0000000269c2b8 @defaults={:action=>"update", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"orders"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002697128 @defaults={:action=>"destroy", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"orders"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002692448 @defaults={:controller=>"store", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/store\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"store", :action=>"index"} @name=:store_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002661e88 @defaults={:action=>"index", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x00000002656268 @defaults={:action=>"create", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"products"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002645940 @defaults={:action=>"new", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x00000002638330 @defaults={:action=>"edit", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x000000025b6e20 @defaults={:action=>"show", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x000000025824b8 @defaults={:action=>"update", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"products"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000257e110 @defaults={:action=>"destroy", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"products"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000252f380 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>], @recognition_graph=nil, @recognition_keys=nil, @generation_graph=nil, @generation_keys=nil>>
>> app
=> #<ActionDispatch::Integration::Session:0x00000001cad130 @app=#<Depot::Application:0x00000002c54b88 @config=#<Rails::Application::Configuration:0x00000002c21738 @root=#<Pathname:/home/rubys/git/awdwr/edition3/work-192-30/depot>, @encoding="utf-8", @allow_concurrency=false, @consider_all_requests_local=true, @filter_parameters=[:password], @dependency_loading=true, @serve_static_assets=true, @session_store=:active_record_store, @session_options={}, @time_zone="UTC", @middleware=[ActionDispatch::Static, Rack::Lock, ActiveSupport::Cache::Strategy::LocalCache, Rack::Runtime, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::RemoteIp, Rack::Sendfile, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActiveRecord::SessionStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, Rack::MethodOverride, ActionDispatch::Head, ActionDispatch::BestStandardsSupport], @paths=#<Rails::Paths::Root:0x00000002c6e420 @children={"app"=>#<Rails::Paths::Path:0x00000002c6e240 @children={"controllers"=>#<Rails::Paths::Path:0x00000002c6df70 @children={}, @root=#<Rails::Paths::Root:0x00000002c6e420 ...>, @paths=["app/controllers", "/home/rubys/git/rails/railties/lib/rails/application/info_routes"], @glob=nil, @eager_load=true>, "helpers"=>#<Rails::Paths::Path:0x00000002c6dc50 @children={}, @root=#<Rails::Paths::Root:0x00000002c6e420 ...>, @paths=["app/helpers"], @glob=nil, @eager_load=true>, "models"=>#<Rails::Paths::Path:0x00000002c6d890 @children={}, @root=#<Rails::Paths::Root:0x00000002c6e420 ...>, @paths=["app/models"], @glob=nil, @eager_load=true>, "mailers"=>#<Rails::Paths::Path:0x00000002c6d5c0 @children={}, @root=#<Rails::Paths::Root:0x00000002c6e420 ...>, @paths=["app/mailers"], @glob=nil, @eager_load=true>, "views"=>#<Rails::Paths::Path:0x00000002c6d228 @children={}, @root=#<Rails::Paths::Root:0x00000002c6e420 ...>, @paths=["app/views"], @glob=nil>}, @root=#<Rails::Paths::Root:0x00000002c6e420 ...>, @paths=["app"], @glob="?, :is_a?, :tap, :send, :public_send, :respond_to?, :respond_to_missing?, :extend, :display, :public_method, :define_singleton_method, :__id__, :object_id, :to_enum, :enum_for, :gem, :psych_y, :y, :silence_warnings, :enable_warnings, :with_warnings, :silence_stderr, :silence_stream, :suppress, :class_eval, :require_library_or_gem, :debugger, :breakpoint, :==, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__, :controller, :action], @disable_clear_and_finalize=false, @controller_constraints=nil, @finalized=true, @set=#<Rack::Mount::RouteSet:0x00000002a17e38 @parameters_key="action_dispatch.request.path_parameters", @named_routes={:info_who_bought=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000029240a8 @defaults={:controller=>"info", :action=>"who_bought"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/info\/who_bought(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"info", :action=>"who_bought"} @name=:info_who_bought>, :admin_login=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002adb1a8 @defaults={:controller=>"admin", :action=>"login"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/login(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"login"} @name=:admin_login>, :admin_logout=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a87328 @defaults={:controller=>"admin", :action=>"logout"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/logout(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"logout"} @name=:admin_logout>, :admin_index=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a192b0 @defaults={:controller=>"admin", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"index"} @name=:admin_index>, :users=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002986a00 @defaults={:action=>"index", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"index", :controller=>"users"} @name=:users>, :new_user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000292be20 @defaults={:action=>"new", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"new", :controller=>"users"} @name=:new_user>, :edit_user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000028d9ff8 @defaults={:action=>"edit", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"edit", :controller=>"users"} @name=:edit_user>, :user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000289dc10 @defaults={:action=>"show", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"show", :controller=>"users"} @name=:user>, :line_items=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000285d4a8 @defaults={:action=>"index", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"index", :controller=>"line_items"} @name=:line_items>, :new_line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000028329d8 @defaults={:action=>"new", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"new", :controller=>"line_items"} @name=:new_line_item>, :edit_line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027e0660 @defaults={:action=>"edit", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"edit", :controller=>"line_items"} @name=:edit_line_item>, :line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027bf4d8 @defaults={:action=>"show", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"show", :controller=>"line_items"} @name=:line_item>, :orders=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027513c0 @defaults={:action=>"index", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"index", :controller=>"orders"} @name=:orders>, :new_order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027222a0 @defaults={:action=>"new", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"new", :controller=>"orders"} @name=:new_order>, :edit_order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002708c38 @defaults={:action=>"edit", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"edit", :controller=>"orders"} @name=:edit_order>, :order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000026c9bf0 @defaults={:action=>"show", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"show", :controller=>"orders"} @name=:order>, :store_index=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002692448 @defaults={:controller=>"store", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/store\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"store", :action=>"index"} @name=:store_index>, :products=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002661e88 @defaults={:action=>"index", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"index", :controller=>"products"} @name=:products>, :new_product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002645940 @defaults={:action=>"new", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"new", :controller=>"products"} @name=:new_product>, :edit_product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002638330 @defaults={:action=>"edit", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"edit", :controller=>"products"} @name=:edit_product>, :product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000025b6e20 @defaults={:action=>"show", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:action=>"show", :controller=>"products"} @name=:product>, :rails_info_properties=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000252f380 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>}, @recognition_key_analyzer=nil, @generation_key_analyzer=nil, @request_class=ActionDispatch::Request, @valid_conditions=nil, @optimized_recognize_defined=true, @routes=[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000029240a8 @defaults={:controller=>"info", :action=>"who_bought"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/info\/who_bought(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"info", :action=>"who_bought"} @name=:info_who_bought>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002adb1a8 @defaults={:controller=>"admin", :action=>"login"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/login(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"login"} @name=:admin_login>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a87328 @defaults={:controller=>"admin", :action=>"logout"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/logout(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"logout"} @name=:admin_logout>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a192b0 @defaults={:controller=>"admin", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"index"} @name=:admin_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002986a00 @defaults={:action=>"index", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x000000029518a0 @defaults={:action=>"create", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"users"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000292be20 @defaults={:action=>"new", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x000000028d9ff8 @defaults={:action=>"edit", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x0000000289dc10 @defaults={:action=>"show", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x00000002870238 @defaults={:action=>"update", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"users"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000286a720 @defaults={:action=>"destroy", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"users"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000285d4a8 @defaults={:action=>"index", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x0000000283be48 @defaults={:action=>"create", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"line_items"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000028329d8 @defaults={:action=>"new", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x000000027e0660 @defaults={:action=>"edit", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x000000027bf4d8 @defaults={:action=>"show", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x0000000277c368 @defaults={:action=>"update", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"line_items"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000276e4e8 @defaults={:action=>"destroy", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"line_items"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027513c0 @defaults={:action=>"index", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x0000000272df60 @defaults={:action=>"create", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"orders"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027222a0 @defaults={:action=>"new", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x00000002708c38 @defaults={:action=>"edit", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x000000026c9bf0 @defaults={:action=>"show", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x0000000269c2b8 @defaults={:action=>"update", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"orders"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002697128 @defaults={:action=>"destroy", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"orders"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002692448 @defaults={:controller=>"store", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/store\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"store", :action=>"index"} @name=:store_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002661e88 @defaults={:action=>"index", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x00000002656268 @defaults={:action=>"create", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"products"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002645940 @defaults={:action=>"new", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x00000002638330 @defaults={:action=>"edit", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x000000025b6e20 @defaults={:action=>"show", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x000000025824b8 @defaults={:action=>"update", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"products"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000257e110 @defaults={:action=>"destroy", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"products"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000252f380 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>], @recognition_graph=#<Rack::Mount::Multimap:0x000000024ae910 @hash={"info"=>#<Rack::Mount::Multimap:0x000000024ae2f8 @hash={"GET"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000029240a8 @defaults={:controller=>"info", :action=>"who_bought"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/info\/who_bought(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"info", :action=>"who_bought"} @name=:info_who_bought>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "admin"=>#<Rack::Mount::Multimap:0x000000024adda8 @hash={"GET"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002adb1a8 @defaults={:controller=>"admin", :action=>"login"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/login(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"login"} @name=:admin_login>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a87328 @defaults={:controller=>"admin", :action=>"logout"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/logout(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"logout"} @name=:admin_logout>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a192b0 @defaults={:controller=>"admin", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"index"} @name=:admin_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "users"=>#<Rack::Mount::Multimap:0x000000024ad128 @hash={"GET"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002986a00 @defaults={:action=>"index", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x0000000292be20 @defaults={:action=>"new", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x000000028d9ff8 @defaults={:action=>"edit", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x0000000289dc10 @defaults={:action=>"show", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "POST"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000029518a0 @defaults={:action=>"create", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"users"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "PUT"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002870238 @defaults={:action=>"update", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"users"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "DELETE"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000286a720 @defaults={:action=>"destroy", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"users"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "line_items"=>#<Rack::Mount::Multimap:0x000000024a3060 @hash={"GET"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000285d4a8 @defaults={:action=>"index", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x000000028329d8 @defaults={:action=>"new", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x000000027e0660 @defaults={:action=>"edit", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x000000027bf4d8 @defaults={:action=>"show", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "POST"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000283be48 @defaults={:action=>"create", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"line_items"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "PUT"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000277c368 @defaults={:action=>"update", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"line_items"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "DELETE"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000276e4e8 @defaults={:action=>"destroy", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"line_items"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "orders"=>#<Rack::Mount::Multimap:0x0000000249d980 @hash={"GET"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027513c0 @defaults={:action=>"index", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x000000027222a0 @defaults={:action=>"new", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x00000002708c38 @defaults={:action=>"edit", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x000000026c9bf0 @defaults={:action=>"show", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "POST"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000272df60 @defaults={:action=>"create", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"orders"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "PUT"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000269c2b8 @defaults={:action=>"update", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"orders"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "DELETE"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002697128 @defaults={:action=>"destroy", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"orders"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "store"=>#<Rack::Mount::Multimap:0x0000000248ee30 @hash={"GET"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002692448 @defaults={:controller=>"store", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/store\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"store", :action=>"index"} @name=:store_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "products"=>#<Rack::Mount::Multimap:0x0000000248e778 @hash={"GET"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002661e88 @defaults={:action=>"index", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x00000002645940 @defaults={:action=>"new", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x00000002638330 @defaults={:action=>"edit", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x000000025b6e20 @defaults={:action=>"show", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "POST"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002656268 @defaults={:action=>"create", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"products"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "PUT"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000025824b8 @defaults={:action=>"update", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"products"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "DELETE"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000257e110 @defaults={:action=>"destroy", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"products"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "rails"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000252f380 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>]}>, @recognition_keys=[path_info[0].split(/\.|\//), :request_method], @generation_graph=#<Rack::Mount::Multimap:0x000000024617f0 @hash={"who_bought"=>#<Rack::Mount::Multimap:0x00000002461570 @hash={"info"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000029240a8 @defaults={:controller=>"info", :action=>"who_bought"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/info\/who_bought(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"info", :action=>"who_bought"} @name=:info_who_bought>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "login"=>#<Rack::Mount::Multimap:0x00000002461228 @hash={"admin"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002adb1a8 @defaults={:controller=>"admin", :action=>"login"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/login(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"login"} @name=:admin_login>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "logout"=>#<Rack::Mount::Multimap:0x00000002447238 @hash={"admin"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a87328 @defaults={:controller=>"admin", :action=>"logout"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/logout(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"logout"} @name=:admin_logout>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "index"=>#<Rack::Mount::Multimap:0x00000002446b08 @hash={"admin"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002a192b0 @defaults={:controller=>"admin", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"admin", :action=>"index"} @name=:admin_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "users"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002986a00 @defaults={:action=>"index", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "line_items"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000285d4a8 @defaults={:action=>"index", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "orders"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027513c0 @defaults={:action=>"index", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "store"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002692448 @defaults={:controller=>"store", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/store\/index(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^GET$/} @defaults={:controller=>"store", :action=>"index"} @name=:store_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "products"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002661e88 @defaults={:action=>"index", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "create"=>#<Rack::Mount::Multimap:0x00000002446090 @hash={"users"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000029518a0 @defaults={:action=>"create", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"users"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "line_items"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000283be48 @defaults={:action=>"create", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"line_items"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "orders"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000272df60 @defaults={:action=>"create", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"orders"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "products"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002656268 @defaults={:action=>"create", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^POST$/} @defaults={:action=>"create", :controller=>"products"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "new"=>#<Rack::Mount::Multimap:0x00000002445aa0 @hash={"users"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000292be20 @defaults={:action=>"new", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "line_items"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000028329d8 @defaults={:action=>"new", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "orders"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027222a0 @defaults={:action=>"new", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "products"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002645940 @defaults={:action=>"new", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "edit"=>#<Rack::Mount::Multimap:0x00000002445280 @hash={"users"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000028d9ff8 @defaults={:action=>"edit", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "line_items"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027e0660 @defaults={:action=>"edit", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "orders"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002708c38 @defaults={:action=>"edit", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "products"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002638330 @defaults={:action=>"edit", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "show"=>#<Rack::Mount::Multimap:0x00000002444b00 @hash={"users"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000289dc10 @defaults={:action=>"show", :controller=>"users"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "line_items"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000027bf4d8 @defaults={:action=>"show", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "orders"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000026c9bf0 @defaults={:action=>"show", :controller=>"orders"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "products"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000025b6e20 @defaults={:action=>"show", :controller=>"products"}, @glob_param=nil, @controllers={}> @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:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "update"=>#<Rack::Mount::Multimap:0x00000002444448 @hash={"users"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002870238 @defaults={:action=>"update", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"users"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "line_items"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000277c368 @defaults={:action=>"update", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"line_items"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "orders"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000269c2b8 @defaults={:action=>"update", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"orders"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "products"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000025824b8 @defaults={:action=>"update", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^PUT$/} @defaults={:action=>"update", :controller=>"products"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "destroy"=>#<Rack::Mount::Multimap:0x00000002443db8 @hash={"users"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000286a720 @defaults={:action=>"destroy", :controller=>"users"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"users"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "line_items"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000276e4e8 @defaults={:action=>"destroy", :controller=>"line_items"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"line_items"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "orders"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000002697128 @defaults={:action=>"destroy", :controller=>"orders"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"orders"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>], "products"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000257e110 @defaults={:action=>"destroy", :controller=>"products"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/^DELETE$/} @defaults={:action=>"destroy", :controller=>"products"} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "properties"=>#<Rack::Mount::Multimap:0x00000002415058 @hash={"rails/info"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000256b2e0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x0000000252f380 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>]}>}>, @generation_keys=[:action, :controller]>, @url_helpers=#<Module:0x00000002a99668>>, @header="IE=Edge">>>, @parsers={application/xml=>:xml_simple, application/json=>:json}>>, @default_options={:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true}, @key="_session_id", @cookie_only=true>>>>>, @variation="">, @check_ip_spoofing=true, @trusted_proxies=/(^127\.0\.0\.1$|^(10|172\.(1[6-9]|2[0-9]|30|31)|192\.168)\.)/i>, @consider_all_requests_local=true>>, @header_name="X-Runtime">>, @lock=#<Mutex:0x00000002c3ad78>>, @file_server=#<Rack::File:0x00000002c3ac38 @root="/home/rubys/git/awdwr/edition3/work-192-30/depot/public">>, @ran=true>, @https=false, @response=nil, @request=nil, @controller=nil, @_mock_session=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    /info/who_bought(.:format)               {:controller=>"info", :action=>"who_bought"}
GET    /admin/login(.:format)                   {:controller=>"admin", :action=>"login"}
GET    /admin/logout(.:format)                  {:controller=>"admin", :action=>"logout"}
GET    /admin/index(.:format)                   {:controller=>"admin", :action=>"index"}
GET    /users(.:format)                         {:action=>"index", :controller=>"users"}
POST   /users(.:format)                         {:action=>"create", :controller=>"users"}
GET    /users/new(.:format)                     {:action=>"new", :controller=>"users"}
GET    /users/:id/edit(.:format)                {:action=>"edit", :controller=>"users"}
GET    /users/:id(.:format)                     {:action=>"show", :controller=>"users"}
PUT    /users/:id(.:format)                     {:action=>"update", :controller=>"users"}
DELETE /users/:id(.:format)                     {:action=>"destroy", :controller=>"users"}
GET    /line_items(.:format)                    {:action=>"index", :controller=>"line_items"}
POST   /line_items(.:format)                    {:action=>"create", :controller=>"line_items"}
GET    /line_items/new(.:format)                {:action=>"new", :controller=>"line_items"}
GET    /line_items/:id/edit(.:format)           {:action=>"edit", :controller=>"line_items"}
GET    /line_items/:id(.:format)                {:action=>"show", :controller=>"line_items"}
PUT    /line_items/:id(.:format)                {:action=>"update", :controller=>"line_items"}
DELETE /line_items/:id(.:format)                {:action=>"destroy", :controller=>"line_items"}
GET    /orders(.:format)                        {:action=>"index", :controller=>"orders"}
POST   /orders(.:format)                        {:action=>"create", :controller=>"orders"}
GET    /orders/new(.:format)                    {:action=>"new", :controller=>"orders"}
GET    /orders/:id/edit(.:format)               {:action=>"edit", :controller=>"orders"}
GET    /orders/:id(.:format)                    {:action=>"show", :controller=>"orders"}
PUT    /orders/:id(.:format)                    {:action=>"update", :controller=>"orders"}
DELETE /orders/:id(.:format)                    {:action=>"destroy", :controller=>"orders"}
GET    /store/index(.:format)                   {:controller=>"store", :action=>"index"}
GET    /products(.:format)                      {:action=>"index", :controller=>"products"}
POST   /products(.:format)                      {:action=>"create", :controller=>"products"}
GET    /products/new(.:format)                  {:action=>"new", :controller=>"products"}
GET    /products/:id/edit(.:format)             {:action=>"edit", :controller=>"products"}
GET    /products/:id(.:format)                  {:action=>"show", :controller=>"products"}
PUT    /products/:id(.:format)                  {:action=>"update", :controller=>"products"}
DELETE /products/:id(.:format)                  {:action=>"destroy", :controller=>"products"}
ANY    /:controller(/:action(/:id(.:format)))   {}
ANY    /rails/info/properties(.:format)         {: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/index"
>> rs.generate :controller => :store, :id => 123
=> "/store/index?id=123"
>> app.url_for :controller => :store, :action => :display, :id => 123
=> "http://www.example.com/store/display/123"
 
bundle exec /home/rubys/git/rails/bin/rails new view --skip-bundle --dev
      create  
      create  README
      create  Rakefile
      create  config.ru
      create  .gitignore
      create  Gemfile
      create  app
      create  app/controllers/application_controller.rb
      create  app/helpers/application_helper.rb
      create  app/mailers
      create  app/models
      create  app/views/layouts/application.html.erb
      create  config
      create  config/routes.rb
      create  config/application.rb
      create  config/environment.rb
      create  config/environments
      create  config/environments/development.rb
      create  config/environments/production.rb
      create  config/environments/test.rb
      create  config/initializers
      create  config/initializers/backtrace_silencers.rb
      create  config/initializers/inflections.rb
      create  config/initializers/mime_types.rb
      create  config/initializers/secret_token.rb
      create  config/initializers/session_store.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/422.html
      create  public/500.html
      create  public/favicon.ico
      create  public/index.html
      create  public/robots.txt
      create  public/images
      create  public/images/rails.png
      create  public/stylesheets
      create  public/stylesheets/.gitkeep
      create  public/javascripts
      create  public/javascripts/application.js
      create  public/javascripts/controls.js
      create  public/javascripts/dragdrop.js
      create  public/javascripts/effects.js
      create  public/javascripts/prototype.js
      create  public/javascripts/rails.js
      create  script
      create  script/rails
      create  test
      create  test/fixtures
      create  test/functional
      create  test/integration
      create  test/performance/browsing_test.rb
      create  test/test_helper.rb
      create  test/unit
      create  tmp
      create  tmp/sessions
      create  tmp/sockets
      create  tmp/cache
      create  tmp/pids
      create  vendor/plugins
      create  vendor/plugins/.gitkeep
bundle install
Using rake (0.9.2.2) 
Using abstract (1.0.0) 
Using activesupport (3.0.10) 
Using builder (2.1.2) 
Using i18n (0.5.0) 
Using activemodel (3.0.10) 
Using erubis (2.6.6) 
Using rack (1.2.4) 
Using rack-mount (0.6.14) 
Using rack-test (0.5.7) 
Using tzinfo (0.3.31) 
Using actionpack (3.0.10) 
Using mime-types (1.17.2) 
Using polyglot (0.3.3) 
Using treetop (1.4.10) 
Using mail (2.2.19) 
Using actionmailer (3.0.10) 
Using braintree (2.13.1) 
Using activemerchant (1.10.0) 
Using arel (2.0.10) 
Using activerecord (3.0.10) 
Using activeresource (3.0.10) 
Using bundler (1.0.21) 
Using highline (1.6.9) 
Using net-ssh (2.2.1) 
Using net-scp (1.0.4) 
Using net-sftp (2.0.5) 
Using net-ssh-gateway (1.1.0) 
Using capistrano (2.9.0) 
Using haml (3.1.4) 
Using htmlentities (4.3.1) 
Using json (1.6.4) 
Using rdoc (3.12) 
Using thor (0.14.6) 
Using railties (3.0.10) 
Using rails (3.0.10) 
Using jquery-rails (0.2.7) 
Using mysql (2.8.1) 
Using sqlite3 (1.3.5) 
Using test-unit (2.4.3) 
Using will_paginate (3.0.2) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
edit config/routes.rb
View::Application.routes.draw do
  # ...
 
  # 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/edition3/data/code/e1/views/app/controllers/*.rb app/controllers
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/array_controller.rb' -> `app/controllers/array_controller.rb'
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/article_controller.rb' -> `app/controllers/article_controller.rb'
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/blog1_controller.rb' -> `app/controllers/blog1_controller.rb'
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/blog2_controller.rb' -> `app/controllers/blog2_controller.rb'
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/blog_controller.rb' -> `app/controllers/blog_controller.rb'
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/builder_controller.rb' -> `app/controllers/builder_controller.rb'
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/form_controller.rb' -> `app/controllers/form_controller.rb'
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/form_for_controller.rb' -> `app/controllers/form_for_controller.rb'
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/pager_controller.rb' -> `app/controllers/pager_controller.rb'
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/partial_controller.rb' -> `app/controllers/partial_controller.rb'
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/products_controller.rb' -> `app/controllers/products_controller.rb'
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/rhtml_controller.rb' -> `app/controllers/rhtml_controller.rb'
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/test_controller.rb' -> `app/controllers/test_controller.rb'
`/home/rubys/git/awdwr/edition3/data/code/e1/views/app/controllers/upload_controller.rb' -> `app/controllers/upload_controller.rb'
irb e1/routing/config/routes_for_blog.rb
Switch to inspect mode.
>> require "./config/environment.rb"
=> true
>> require "rails/console/app"
=> true
 
>> rs = ActionController::Routing::Routes
=> #<ActionDispatch::Routing::RouteSet:0x00000003808e48 @routes=[ANY    /:controller(/:action(/:id(.:format)))   {}, ANY    /rails/info/properties(.:format)         {:controller=>"rails/info", :action=>"properties"}], @named_routes=#<ActionDispatch::Routing::RouteSet::NamedRouteCollection:0x00000003852e80 @routes={:rails_info_properties=>ANY    /rails/info/properties(.:format)         {:controller=>"rails/info", :action=>"properties"}}, @helpers=[:hash_for_rails_info_properties_url, :rails_info_properties_url, :hash_for_rails_info_properties_path, :rails_info_properties_path], @module=#<Module:0x000000038528e0>>, @resources_path_names={:new=>"new", :edit=>"edit"}, @controller_namespaces=#<Set: {}>, @default_url_options={}, @request_class=ActionDispatch::Request, @valid_conditions=[:auth_type, :gateway_interface, :path_translated, :remote_host, :remote_ident, :remote_user, :remote_addr, :server_name, :server_protocol, :accept, :accept_charset, :accept_encoding, :accept_language, :cache_control, :from, :negotiate, :pragma, :key?, :request_method, :request_method_symbol, :method, :method_symbol, :get?, :post?, :put?, :delete?, :head?, :headers, :fullpath, :forgery_whitelisted?, :forgery_whitelisted_with_deprecation?, :forgery_whitelisted_without_deprecation?, :media_type, :content_length, :xml_http_request?, :xhr?, :ip, :remote_ip, :server_software, :raw_post, :body, :form_data?, :body_stream, :reset_session, :session=, :session_options=, :GET, :query_parameters, :POST, :request_parameters, :authorization, :local?, :url, :scheme, :protocol, :ssl?, :raw_host_with_port, :host, :host_with_port, :port, :standard_port, :standard_port?, :port_string, :server_port, :domain, :subdomains, :subdomain, :request_uri, :filtered_parameters, :filtered_env, :filtered_path, :parameters, :params, :path_parameters=, :symbolized_path_parameters, :path_parameters, :content_mime_type, :content_type, :accepts, :format, :formats, :format=, :negotiate_mime, :if_modified_since, :if_none_match, :not_modified?, :etag_matches?, :fresh?, :env, :script_name, :path_info, :query_string, :session, :session_options, :logger, :media_type_params, :content_charset, :script_name=, :path_info=, :options?, :trace?, :parseable_data?, :[], :[]=, :values_at, :referer, :referrer, :user_agent, :cookies, :path, :psych_to_yaml, :to_yaml_properties, :to_yaml, :blank?, :present?, :presence, :duplicable?, :acts_like?, :try, :html_safe?, :dclone, :is_haml?, :`, :returning, :to_param, :to_query, :instance_values, :instance_variable_names, :copy_instance_variables_from, :to_json, :with_options, :require_or_load, :require_dependency, :require_association, :load_dependency, :load, :require, :unloadable, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, :initialize_dup, :initialize_clone, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :to_s, :inspect, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :instance_of?, :kind_of?, :is_a?, :tap, :send, :public_send, :respond_to?, :respond_to_missing?, :extend, :display, :public_method, :define_singleton_method, :__id__, :object_id, :to_enum, :enum_for, :gem, :psych_y, :y, :silence_warnings, :enable_warnings, :with_warnings, :silence_stderr, :silence_stream, :suppress, :class_eval, :require_library_or_gem, :debugger, :breakpoint, :==, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__, :controller, :action], @disable_clear_and_finalize=false, @controller_constraints=nil, @finalized=false, @set=#<Rack::Mount::RouteSet:0x000000037edf58 @parameters_key="action_dispatch.request.path_parameters", @named_routes={:rails_info_properties=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000036e05c0 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>}, @recognition_key_analyzer=#<Rack::Mount::Analysis::Splitting:0x000000037edee0 @boundaries={:path_info=>{"/"=>2, "s"=>1, "."=>1}}, @raw_keys=[{:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/}, {:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/}], @key_frequency={}, @report=nil, @possible_keys=nil>, @generation_key_analyzer=#<Rack::Mount::Analysis::Frequency:0x000000037ede18 @raw_keys=[{}, {:controller=>"rails/info", :action=>"properties"}], @key_frequency={}, @report=nil, @possible_keys=nil>, @request_class=ActionDispatch::Request, @valid_conditions=[:auth_type, :gateway_interface, :path_translated, :remote_host, :remote_ident, :remote_user, :remote_addr, :server_name, :server_protocol, :accept, :accept_charset, :accept_encoding, :accept_language, :cache_control, :from, :negotiate, :pragma, :key?, :request_method, :request_method_symbol, :method, :method_symbol, :get?, :post?, :put?, :delete?, :head?, :headers, :fullpath, :forgery_whitelisted?, :forgery_whitelisted_with_deprecation?, :forgery_whitelisted_without_deprecation?, :media_type, :content_length, :xml_http_request?, :xhr?, :ip, :remote_ip, :server_software, :raw_post, :body, :form_data?, :body_stream, :reset_session, :session=, :session_options=, :GET, :query_parameters, :POST, :request_parameters, :authorization, :local?, :cookie_jar, :flash, :url, :scheme, :protocol, :ssl?, :raw_host_with_port, :host, :host_with_port, :port, :standard_port, :standard_port?, :port_string, :server_port, :domain, :subdomains, :subdomain, :request_uri, :filtered_parameters, :filtered_env, :filtered_path, :parameters, :params, :path_parameters=, :symbolized_path_parameters, :path_parameters, :content_mime_type, :content_type, :accepts, :format, :formats, :format=, :negotiate_mime, :if_modified_since, :if_none_match, :not_modified?, :etag_matches?, :fresh?, :env, :script_name, :path_info, :query_string, :session, :session_options, :logger, :media_type_params, :content_charset, :script_name=, :path_info=, :options?, :trace?, :parseable_data?, :[], :[]=, :values_at, :referer, :referrer, :user_agent, :cookies, :path, :psych_to_yaml, :to_yaml_properties, :to_yaml, :blank?, :present?, :presence, :duplicable?, :acts_like?, :try, :html_safe?, :dclone, :is_haml?, :`, :returning, :to_param, :to_query, :instance_values, :instance_variable_names, :copy_instance_variables_from, :to_json, :with_options, :require_or_load, :require_dependency, :require_association, :load_dependency, :load, :require, :unloadable, :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, :initialize_dup, :initialize_clone, :taint, :tainted?, :untaint, :untrust, :untrusted?, :trust, :freeze, :frozen?, :to_s, :inspect, :methods, :singleton_methods, :protected_methods, :private_methods, :public_methods, :instance_variables, :instance_variable_get, :instance_variable_set, :instance_variable_defined?, :instance_of?, :kind_of?, :is_a?, :tap, :send, :public_send, :respond_to?, :respond_to_missing?, :extend, :display, :public_method, :define_singleton_method, :__id__, :object_id, :to_enum, :enum_for, :gem, :psych_y, :y, :silence_warnings, :enable_warnings, :with_warnings, :silence_stderr, :silence_stream, :suppress, :class_eval, :require_library_or_gem, :debugger, :breakpoint, :suppress_warnings, :==, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__], @optimized_recognize_defined=false, @routes=[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003889890 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000036e05c0 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>], @recognition_graph=nil, @recognition_keys=nil, @generation_graph=nil, @generation_keys=nil>>
>> app
=> #<ActionDispatch::Integration::Session:0x00000003191a38 @app=#<View::Application:0x00000003818938 @config=#<Rails::Application::Configuration:0x000000037eb2d0 @root=#<Pathname:/home/rubys/git/awdwr/edition3/work-192-30/view>, @encoding="utf-8", @allow_concurrency=false, @consider_all_requests_local=true, @filter_parameters=[:password], @dependency_loading=true, @serve_static_assets=true, @session_store=:cookie_store, @session_options={:key=>"_view_session", :cookie_only=>true}, @time_zone="UTC", @middleware=[ActionDispatch::Static, Rack::Lock, ActiveSupport::Cache::Strategy::LocalCache, Rack::Runtime, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::RemoteIp, Rack::Sendfile, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, Rack::MethodOverride, ActionDispatch::Head, ActionDispatch::BestStandardsSupport], @paths=#<Rails::Paths::Root:0x00000003837fb8 @children={"app"=>#<Rails::Paths::Path:0x00000003837dd8 @children={"controllers"=>#<Rails::Paths::Path:0x00000003837b08 @children={}, @root=#<Rails::Paths::Root:0x00000003837fb8 ...>, @paths=["app/controllers", "/home/rubys/git/rails/railties/lib/rails/application/info_routes"], @glob=nil, @eager_load=true>, "helpers"=>#<Rails::Paths::Path:0x000000038377e8 @children={}, @root=#<Rails::Paths::Root:0x00000003837fb8 ...>, @paths=["app/helpers"], @glob=nil, @eager_load=true>, "models"=>#<Rails::Paths::Path:0x00000003837428 @children={}, @root=#<Rails::Paths::Root:0x00000003837fb8 ...>, @paths=["app/models"], @glob=nil, @eager_load=true>, "mailers"=>#<Rails::Paths::Path:0x00000003837158 @children={}, @root=#<Rails::Paths::Root:0x00000003837fb8 ...>, @paths=["app/mailers"], @glob=nil, @eager_load=true>, "views"=>#<Rails::Paths::Path:0x00000003836dc0 @children={}, @root=#<Rails::Paths::Root:0x00000003837fb8 ...>, @paths=["app/views"], @glob=nil>}, @root=#<Rails::Paths::Root:0x00000003837fb8 ...>, @paths=["app"], @glob="?, :is_a?, :tap, :send, :public_send, :respond_to?, :respond_to_missing?, :extend, :display, :public_method, :define_singleton_method, :__id__, :object_id, :to_enum, :enum_for, :gem, :psych_y, :y, :silence_warnings, :enable_warnings, :with_warnings, :silence_stderr, :silence_stream, :suppress, :class_eval, :require_library_or_gem, :debugger, :breakpoint, :==, :equal?, :!, :!=, :instance_eval, :instance_exec, :__send__, :controller, :action], @disable_clear_and_finalize=false, @controller_constraints=nil, @finalized=true, @set=#<Rack::Mount::RouteSet:0x000000037edf58 @parameters_key="action_dispatch.request.path_parameters", @named_routes={:rails_info_properties=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000036e05c0 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>}, @recognition_key_analyzer=nil, @generation_key_analyzer=nil, @request_class=ActionDispatch::Request, @valid_conditions=nil, @optimized_recognize_defined=true, @routes=[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003889890 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000036e05c0 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>], @recognition_graph=#<Rack::Mount::Multimap:0x00000003327730 @hash={"info"=>#<Rack::Mount::Multimap:0x00000003326d58 @hash={"rails"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003889890 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000036e05c0 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>]}>}>, @recognition_keys=[path_info[1].split(/\//), path_info[0].split(/\//)], @generation_graph=#<Rack::Mount::Multimap:0x00000003325f48 @hash={"properties"=>#<Rack::Mount::Multimap:0x00000003325930 @hash={"rails/info"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x00000003889890 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x000000036e05c0 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.(?<format>[^\/.?]+))?\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>]}>}>, @generation_keys=[:action, :controller]>, @url_helpers=#<Module:0x00000003463888>>, @header="IE=Edge">>>, @parsers={application/xml=>:xml_simple, application/json=>:json}>>, @default_options={:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true}, @key="_view_session", @cookie_only=true>>>>>, @variation="">, @check_ip_spoofing=true, @trusted_proxies=/(^127\.0\.0\.1$|^(10|172\.(1[6-9]|2[0-9]|30|31)|192\.168)\.)/i>, @consider_all_requests_local=true>>, @header_name="X-Runtime">>, @lock=#<Mutex:0x0000000374c950>>, @file_server=#<Rack::File:0x0000000374c8b0 @root="/home/rubys/git/awdwr/edition3/work-192-30/view/public">>, @ran=true>, @https=false, @response=nil, @request=nil, @controller=nil, @_mock_session=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"
 

23.3 Helpers for Formatting, Linking, and Pagination 21 Action Controller: Routing and URLs