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
/home/rubys/.rvm/gems/ruby-1.9.3-r28929/gems/bundler-1.0.0.rc.3/lib/bundler.rb:183: Use RbConfig instead of obsolete and deprecated Config.
Switch to inspect mode.
>> require "./config/environment.rb"
=> true
>> require "rails/console/app"
=> ["MiniTest", "PrettyPrint", "PP", "Test", "Mocha"]
 
>> rs = ActionController::Routing::Routes
=> #<ActionDispatch::Routing::RouteSet:0x8a93ab4 @routes=[GET    /info/who_bought                         {:controller=>"info", :action=>"who_bought"}, GET    /admin/login                             {:controller=>"admin", :action=>"login"}, GET    /admin/logout                            {:controller=>"admin", :action=>"logout"}, GET    /admin/index                             {:controller=>"admin", :action=>"index"}, GET    /users(.:format)                         {:controller=>"users", :action=>"index"}, POST   /users(.:format)                         {:controller=>"users", :action=>"create"}, GET    /users/new(.:format)                     {:controller=>"users", :action=>"new"}, GET    /users/:id(.:format)                     {:controller=>"users", :action=>"show"}, PUT    /users/:id(.:format)                     {:controller=>"users", :action=>"update"}, DELETE /users/:id(.:format)                     {:controller=>"users", :action=>"destroy"}, GET    /users/:id/edit(.:format)                {:controller=>"users", :action=>"edit"}, GET    /line_items(.:format)                    {:controller=>"line_items", :action=>"index"}, POST   /line_items(.:format)                    {:controller=>"line_items", :action=>"create"}, GET    /line_items/new(.:format)                {:controller=>"line_items", :action=>"new"}, GET    /line_items/:id(.:format)                {:controller=>"line_items", :action=>"show"}, PUT    /line_items/:id(.:format)                {:controller=>"line_items", :action=>"update"}, DELETE /line_items/:id(.:format)                {:controller=>"line_items", :action=>"destroy"}, GET    /line_items/:id/edit(.:format)           {:controller=>"line_items", :action=>"edit"}, GET    /orders(.:format)                        {:controller=>"orders", :action=>"index"}, POST   /orders(.:format)                        {:controller=>"orders", :action=>"create"}, GET    /orders/new(.:format)                    {:controller=>"orders", :action=>"new"}, GET    /orders/:id(.:format)                    {:controller=>"orders", :action=>"show"}, PUT    /orders/:id(.:format)                    {:controller=>"orders", :action=>"update"}, DELETE /orders/:id(.:format)                    {:controller=>"orders", :action=>"destroy"}, GET    /orders/:id/edit(.:format)               {:controller=>"orders", :action=>"edit"}, GET    /store/index                             {:controller=>"store", :action=>"index"}, GET    /products(.:format)                      {:controller=>"products", :action=>"index"}, POST   /products(.:format)                      {:controller=>"products", :action=>"create"}, GET    /products/new(.:format)                  {:controller=>"products", :action=>"new"}, GET    /products/:id(.:format)                  {:controller=>"products", :action=>"show"}, PUT    /products/:id(.:format)                  {:controller=>"products", :action=>"update"}, DELETE /products/:id(.:format)                  {:controller=>"products", :action=>"destroy"}, GET    /products/:id/edit(.:format)             {:controller=>"products", :action=>"edit"}, ANY    /:controller(/:action(/:id(.:format)))   {}, ANY    /rails/info/properties                   {:controller=>"rails/info", :action=>"properties"}], @named_routes=#<ActionDispatch::Routing::RouteSet::NamedRouteCollection:0x8a0f098 @routes={:info_who_bought=>GET    /info/who_bought                         {:controller=>"info", :action=>"who_bought"}, :admin_login=>GET    /admin/login                             {:controller=>"admin", :action=>"login"}, :admin_logout=>GET    /admin/logout                            {:controller=>"admin", :action=>"logout"}, :admin_index=>GET    /admin/index                             {:controller=>"admin", :action=>"index"}, :users=>POST   /users(.:format)                         {:controller=>"users", :action=>"create"}, :new_user=>GET    /users/new(.:format)                     {:controller=>"users", :action=>"new"}, :user=>DELETE /users/:id(.:format)                     {:controller=>"users", :action=>"destroy"}, :edit_user=>GET    /users/:id/edit(.:format)                {:controller=>"users", :action=>"edit"}, :line_items=>POST   /line_items(.:format)                    {:controller=>"line_items", :action=>"create"}, :new_line_item=>GET    /line_items/new(.:format)                {:controller=>"line_items", :action=>"new"}, :line_item=>DELETE /line_items/:id(.:format)                {:controller=>"line_items", :action=>"destroy"}, :edit_line_item=>GET    /line_items/:id/edit(.:format)           {:controller=>"line_items", :action=>"edit"}, :orders=>POST   /orders(.:format)                        {:controller=>"orders", :action=>"create"}, :new_order=>GET    /orders/new(.:format)                    {:controller=>"orders", :action=>"new"}, :order=>DELETE /orders/:id(.:format)                    {:controller=>"orders", :action=>"destroy"}, :edit_order=>GET    /orders/:id/edit(.:format)               {:controller=>"orders", :action=>"edit"}, :store_index=>GET    /store/index                             {:controller=>"store", :action=>"index"}, :products=>POST   /products(.:format)                      {:controller=>"products", :action=>"create"}, :new_product=>GET    /products/new(.:format)                  {:controller=>"products", :action=>"new"}, :product=>DELETE /products/:id(.:format)                  {:controller=>"products", :action=>"destroy"}, :edit_product=>GET    /products/:id/edit(.:format)             {:controller=>"products", :action=>"edit"}, :rails_info_properties=>ANY    /rails/info/properties                   {: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_users_url, :users_url, :hash_for_users_path, :users_path, :hash_for_new_user_url, :new_user_url, :hash_for_new_user_path, :new_user_path, :hash_for_user_url, :user_url, :hash_for_user_path, :user_path, :hash_for_user_url, :user_url, :hash_for_user_path, :user_path, :hash_for_user_url, :user_url, :hash_for_user_path, :user_path, :hash_for_edit_user_url, :edit_user_url, :hash_for_edit_user_path, :edit_user_path, :hash_for_line_items_url, :line_items_url, :hash_for_line_items_path, :line_items_path, :hash_for_line_items_url, :line_items_url, :hash_for_line_items_path, :line_items_path, :hash_for_new_line_item_url, :new_line_item_url, :hash_for_new_line_item_path, :new_line_item_path, :hash_for_line_item_url, :line_item_url, :hash_for_line_item_path, :line_item_path, :hash_for_line_item_url, :line_item_url, :hash_for_line_item_path, :line_item_path, :hash_for_line_item_url, :line_item_url, :hash_for_line_item_path, :line_item_path, :hash_for_edit_line_item_url, :edit_line_item_url, :hash_for_edit_line_item_path, :edit_line_item_path, :hash_for_orders_url, :orders_url, :hash_for_orders_path, :orders_path, :hash_for_orders_url, :orders_url, :hash_for_orders_path, :orders_path, :hash_for_new_order_url, :new_order_url, :hash_for_new_order_path, :new_order_path, :hash_for_order_url, :order_url, :hash_for_order_path, :order_path, :hash_for_order_url, :order_url, :hash_for_order_path, :order_path, :hash_for_order_url, :order_url, :hash_for_order_path, :order_path, :hash_for_edit_order_url, :edit_order_url, :hash_for_edit_order_path, :edit_order_path, :hash_for_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_products_url, :products_url, :hash_for_products_path, :products_path, :hash_for_new_product_url, :new_product_url, :hash_for_new_product_path, :new_product_path, :hash_for_product_url, :product_url, :hash_for_product_path, :product_path, :hash_for_product_url, :product_url, :hash_for_product_path, :product_path, :hash_for_product_url, :product_url, :hash_for_product_path, :product_path, :hash_for_edit_product_url, :edit_product_url, :hash_for_edit_product_path, :edit_product_path, :hash_for_rails_info_properties_url, :rails_info_properties_url, :hash_for_rails_info_properties_path, :rails_info_properties_path], @module=#<Module:0x8a0f00c>>, @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?, :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, :url, :protocol, :ssl?, :raw_host_with_port, :host, :host_with_port, :port, :standard_port, :port_string, :server_port, :domain, :subdomains, :subdomain, :request_uri, :filtered_parameters, :filtered_env, :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, :scheme, :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, :taguri=, :taguri, :to_yaml_style, :to_yaml_properties, :syck_to_yaml, :to_yaml, :blank?, :present?, :presence, :duplicable?, :acts_like?, :try, :html_safe?, :`, :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, :to_sql, :equality_predicate_sql, :inequality_predicate_sql, :bind, :find_correlate_in, :let, :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, :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:0x9330564 @parameters_key="action_dispatch.request.path_parameters", @named_routes={:info_who_bought=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x938c774 @defaults={:controller=>"info", :action=>"who_bought"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/info\/who_bought\Z/, :request_method=>/GET/} @defaults={:controller=>"info", :action=>"who_bought"} @name=:info_who_bought>, :admin_login=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x824f588 @defaults={:controller=>"admin", :action=>"login"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/login\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"login"} @name=:admin_login>, :admin_logout=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8423e40 @defaults={:controller=>"admin", :action=>"logout"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/logout\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"logout"} @name=:admin_logout>, :admin_index=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x85a4e04 @defaults={:controller=>"admin", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/index\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"index"} @name=:admin_index>, :users=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x86a8788 @defaults={:controller=>"users", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"users", :action=>"create"} @name=:users>, :new_user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x89ee654 @defaults={:controller=>"users", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"new"} @name=:new_user>, :user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a311ac @defaults={:controller=>"users", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"users", :action=>"destroy"} @name=:user>, :edit_user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a492fc @defaults={:controller=>"users", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"edit"} @name=:edit_user>, :line_items=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a938ac @defaults={:controller=>"line_items", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"line_items", :action=>"create"} @name=:line_items>, :new_line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8aa11b4 @defaults={:controller=>"line_items", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"new"} @name=:new_line_item>, :line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b02860 @defaults={:controller=>"line_items", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"line_items", :action=>"destroy"} @name=:line_item>, :edit_line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b22b9c @defaults={:controller=>"line_items", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"edit"} @name=:edit_line_item>, :orders=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b6a604 @defaults={:controller=>"orders", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"orders", :action=>"create"} @name=:orders>, :new_order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b7a950 @defaults={:controller=>"orders", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"new"} @name=:new_order>, :order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ebbeac @defaults={:controller=>"orders", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"orders", :action=>"destroy"} @name=:order>, :edit_order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ec0f38 @defaults={:controller=>"orders", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"edit"} @name=:edit_order>, :store_index=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ed2738 @defaults={:controller=>"store", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/store\/index\Z/, :request_method=>/GET/} @defaults={:controller=>"store", :action=>"index"} @name=:store_index>, :products=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f0aafc @defaults={:controller=>"products", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"products", :action=>"create"} @name=:products>, :new_product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f2c418 @defaults={:controller=>"products", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"new"} @name=:new_product>, :product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f66be0 @defaults={:controller=>"products", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"products", :action=>"destroy"} @name=:product>, :edit_product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f7d8cc @defaults={:controller=>"products", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"edit"} @name=:edit_product>, :rails_info_properties=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f98a64 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>}, @recognition_key_analyzer=#<Rack::Mount::Analysis::Splitting:0x933053c @boundaries={:path_info=>{"s"=>8, "."=>28, "w"=>4, "/"=>22, "t"=>4}, :request_method=>{}}, @raw_keys=[{:path_info=>/\A\/info\/who_bought\Z/, :request_method=>/GET/}, {:path_info=>/\A\/admin\/login\Z/, :request_method=>/GET/}, {:path_info=>/\A\/admin\/logout\Z/, :request_method=>/GET/}, {:path_info=>/\A\/admin\/index\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>[^\/.?]+)(?:\.(?<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\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, {: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>[^\/.?]+)(?:\.(?<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\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, {: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>[^\/.?]+)(?:\.(?<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\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/store\/index\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>[^\/.?]+)(?:\.(?<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\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/}, {:path_info=>/\A\/rails\/info\/properties\Z/}], @key_frequency={}, @report=nil, @possible_keys=nil>, @generation_key_analyzer=#<Rack::Mount::Analysis::Frequency:0x93304d8 @raw_keys=[{:controller=>"info", :action=>"who_bought"}, {:controller=>"admin", :action=>"login"}, {:controller=>"admin", :action=>"logout"}, {:controller=>"admin", :action=>"index"}, {:controller=>"users", :action=>"index"}, {:controller=>"users", :action=>"create"}, {:controller=>"users", :action=>"new"}, {:controller=>"users", :action=>"show"}, {:controller=>"users", :action=>"update"}, {:controller=>"users", :action=>"destroy"}, {:controller=>"users", :action=>"edit"}, {:controller=>"line_items", :action=>"index"}, {:controller=>"line_items", :action=>"create"}, {:controller=>"line_items", :action=>"new"}, {:controller=>"line_items", :action=>"show"}, {:controller=>"line_items", :action=>"update"}, {:controller=>"line_items", :action=>"destroy"}, {:controller=>"line_items", :action=>"edit"}, {:controller=>"orders", :action=>"index"}, {:controller=>"orders", :action=>"create"}, {:controller=>"orders", :action=>"new"}, {:controller=>"orders", :action=>"show"}, {:controller=>"orders", :action=>"update"}, {:controller=>"orders", :action=>"destroy"}, {:controller=>"orders", :action=>"edit"}, {:controller=>"store", :action=>"index"}, {:controller=>"products", :action=>"index"}, {:controller=>"products", :action=>"create"}, {:controller=>"products", :action=>"new"}, {:controller=>"products", :action=>"show"}, {:controller=>"products", :action=>"update"}, {:controller=>"products", :action=>"destroy"}, {:controller=>"products", :action=>"edit"}, {}, {: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?, :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, :cookie_jar, :flash, :url, :protocol, :ssl?, :raw_host_with_port, :host, :host_with_port, :port, :standard_port, :port_string, :server_port, :domain, :subdomains, :subdomain, :request_uri, :filtered_parameters, :filtered_env, :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, :scheme, :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, :taguri=, :taguri, :to_yaml_style, :to_yaml_properties, :syck_to_yaml, :to_yaml, :blank?, :present?, :presence, :duplicable?, :acts_like?, :try, :html_safe?, :`, :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, :to_sql, :equality_predicate_sql, :inequality_predicate_sql, :bind, :find_correlate_in, :let, :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, :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__], @optimized_recognize_defined=false, @routes=[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x938c774 @defaults={:controller=>"info", :action=>"who_bought"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/info\/who_bought\Z/, :request_method=>/GET/} @defaults={:controller=>"info", :action=>"who_bought"} @name=:info_who_bought>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x824f588 @defaults={:controller=>"admin", :action=>"login"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/login\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"login"} @name=:admin_login>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8423e40 @defaults={:controller=>"admin", :action=>"logout"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/logout\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"logout"} @name=:admin_logout>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x85a4e04 @defaults={:controller=>"admin", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/index\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"index"} @name=:admin_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x864569c @defaults={:controller=>"users", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"index"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x86a8788 @defaults={:controller=>"users", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"users", :action=>"create"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x89ee654 @defaults={:controller=>"users", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"new"} @name=:new_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a0ff34 @defaults={:controller=>"users", :action=>"show"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"show"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a23f34 @defaults={:controller=>"users", :action=>"update"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:controller=>"users", :action=>"update"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a311ac @defaults={:controller=>"users", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"users", :action=>"destroy"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a492fc @defaults={:controller=>"users", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"edit"} @name=:edit_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a78ca0 @defaults={:controller=>"line_items", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"index"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a938ac @defaults={:controller=>"line_items", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"line_items", :action=>"create"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8aa11b4 @defaults={:controller=>"line_items", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"new"} @name=:new_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8accaf8 @defaults={:controller=>"line_items", :action=>"show"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"show"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8aecc54 @defaults={:controller=>"line_items", :action=>"update"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:controller=>"line_items", :action=>"update"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b02860 @defaults={:controller=>"line_items", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"line_items", :action=>"destroy"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b22b9c @defaults={:controller=>"line_items", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"edit"} @name=:edit_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b3efa4 @defaults={:controller=>"orders", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"index"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b6a604 @defaults={:controller=>"orders", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"orders", :action=>"create"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b7a950 @defaults={:controller=>"orders", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"new"} @name=:new_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8e9c660 @defaults={:controller=>"orders", :action=>"show"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"show"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ea33d4 @defaults={:controller=>"orders", :action=>"update"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:controller=>"orders", :action=>"update"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ebbeac @defaults={:controller=>"orders", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"orders", :action=>"destroy"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ec0f38 @defaults={:controller=>"orders", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"edit"} @name=:edit_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ed2738 @defaults={:controller=>"store", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/store\/index\Z/, :request_method=>/GET/} @defaults={:controller=>"store", :action=>"index"} @name=:store_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8eec6ec @defaults={:controller=>"products", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"index"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f0aafc @defaults={:controller=>"products", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"products", :action=>"create"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f2c418 @defaults={:controller=>"products", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"new"} @name=:new_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f43758 @defaults={:controller=>"products", :action=>"show"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"show"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f582fc @defaults={:controller=>"products", :action=>"update"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:controller=>"products", :action=>"update"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f66be0 @defaults={:controller=>"products", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"products", :action=>"destroy"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f7d8cc @defaults={:controller=>"products", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"edit"} @name=:edit_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8f98a64 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties\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:0x8ead668 @app=#<Depot::Application:0x8a41a34 @config=#<Rails::Application::Configuration:0x8a33fb0 @root=#<Pathname:/home/rubys/git/awdwr/work-193/depot>, @allow_concurrency=false, @consider_all_requests_local=true, @encoding="utf-8", @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::QueryCache, ActionDispatch::Cookies, ActiveRecord::SessionStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, Rack::MethodOverride, ActionDispatch::Head, ActionDispatch::BestStandardsSupport], @paths=#<Rails::Paths::Root:0x84f5da0 @children={"app"=>#<Rails::Paths::Path:0x84f5c9c @children={"controllers"=>#<Rails::Paths::Path:0x84f5a6c @children={}, @root=#<Rails::Paths::Root:0x84f5da0 ...>, @paths=["app/controllers", "/home/rubys/git/rails/railties/lib/rails/application/info_routes"], @glob=nil, @eager_load=true>, "helpers"=>#<Rails::Paths::Path:0x84f5850 @children={}, @root=#<Rails::Paths::Root:0x84f5da0 ...>, @paths=["app/helpers"], @glob=nil, @eager_load=true>, "models"=>#<Rails::Paths::Path:0x84f484c @children={}, @root=#<Rails::Paths::Root:0x84f5da0 ...>, @paths=["app/models"], @glob=nil, @eager_load=true>, "mailers"=>#<Rails::Paths::Path:0x84f3ff0 @children={}, @root=#<Rails::Paths::Root:0x84f5da0 ...>, @paths=["app/mailers"], @glob=nil, @eager_load=true>, "views"=>#<Rails::Paths::Path:0x859e798 @children={}, @root=#<Rails::Paths::Root:0x84f5da0 ...>, @paths=["app/views"], @glob=nil>}, @root=#<Rails::Paths::Root:0x84f5da0 ...>, @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, :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:0x9330564 @parameters_key="action_dispatch.request.path_parameters", @named_routes={:info_who_bought=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x938c774 @defaults={:controller=>"info", :action=>"who_bought"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/info\/who_bought\Z/, :request_method=>/GET/} @defaults={:controller=>"info", :action=>"who_bought"} @name=:info_who_bought>, :admin_login=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x824f588 @defaults={:controller=>"admin", :action=>"login"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/login\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"login"} @name=:admin_login>, :admin_logout=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8423e40 @defaults={:controller=>"admin", :action=>"logout"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/logout\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"logout"} @name=:admin_logout>, :admin_index=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x85a4e04 @defaults={:controller=>"admin", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/index\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"index"} @name=:admin_index>, :users=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x86a8788 @defaults={:controller=>"users", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"users", :action=>"create"} @name=:users>, :new_user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x89ee654 @defaults={:controller=>"users", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"new"} @name=:new_user>, :user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a311ac @defaults={:controller=>"users", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"users", :action=>"destroy"} @name=:user>, :edit_user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a492fc @defaults={:controller=>"users", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"edit"} @name=:edit_user>, :line_items=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a938ac @defaults={:controller=>"line_items", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"line_items", :action=>"create"} @name=:line_items>, :new_line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8aa11b4 @defaults={:controller=>"line_items", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"new"} @name=:new_line_item>, :line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b02860 @defaults={:controller=>"line_items", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"line_items", :action=>"destroy"} @name=:line_item>, :edit_line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b22b9c @defaults={:controller=>"line_items", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"edit"} @name=:edit_line_item>, :orders=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b6a604 @defaults={:controller=>"orders", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"orders", :action=>"create"} @name=:orders>, :new_order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b7a950 @defaults={:controller=>"orders", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"new"} @name=:new_order>, :order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ebbeac @defaults={:controller=>"orders", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"orders", :action=>"destroy"} @name=:order>, :edit_order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ec0f38 @defaults={:controller=>"orders", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"edit"} @name=:edit_order>, :store_index=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ed2738 @defaults={:controller=>"store", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/store\/index\Z/, :request_method=>/GET/} @defaults={:controller=>"store", :action=>"index"} @name=:store_index>, :products=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f0aafc @defaults={:controller=>"products", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"products", :action=>"create"} @name=:products>, :new_product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f2c418 @defaults={:controller=>"products", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"new"} @name=:new_product>, :product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f66be0 @defaults={:controller=>"products", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"products", :action=>"destroy"} @name=:product>, :edit_product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f7d8cc @defaults={:controller=>"products", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"edit"} @name=:edit_product>, :rails_info_properties=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f98a64 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties\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:0x938c774 @defaults={:controller=>"info", :action=>"who_bought"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/info\/who_bought\Z/, :request_method=>/GET/} @defaults={:controller=>"info", :action=>"who_bought"} @name=:info_who_bought>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x824f588 @defaults={:controller=>"admin", :action=>"login"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/login\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"login"} @name=:admin_login>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8423e40 @defaults={:controller=>"admin", :action=>"logout"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/logout\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"logout"} @name=:admin_logout>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x85a4e04 @defaults={:controller=>"admin", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/index\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"index"} @name=:admin_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x864569c @defaults={:controller=>"users", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"index"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x86a8788 @defaults={:controller=>"users", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"users", :action=>"create"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x89ee654 @defaults={:controller=>"users", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"new"} @name=:new_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a0ff34 @defaults={:controller=>"users", :action=>"show"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"show"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a23f34 @defaults={:controller=>"users", :action=>"update"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:controller=>"users", :action=>"update"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a311ac @defaults={:controller=>"users", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"users", :action=>"destroy"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a492fc @defaults={:controller=>"users", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"edit"} @name=:edit_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a78ca0 @defaults={:controller=>"line_items", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"index"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a938ac @defaults={:controller=>"line_items", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"line_items", :action=>"create"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8aa11b4 @defaults={:controller=>"line_items", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"new"} @name=:new_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8accaf8 @defaults={:controller=>"line_items", :action=>"show"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"show"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8aecc54 @defaults={:controller=>"line_items", :action=>"update"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:controller=>"line_items", :action=>"update"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b02860 @defaults={:controller=>"line_items", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"line_items", :action=>"destroy"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b22b9c @defaults={:controller=>"line_items", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"edit"} @name=:edit_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b3efa4 @defaults={:controller=>"orders", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"index"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b6a604 @defaults={:controller=>"orders", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"orders", :action=>"create"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8b7a950 @defaults={:controller=>"orders", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"new"} @name=:new_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8e9c660 @defaults={:controller=>"orders", :action=>"show"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"show"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ea33d4 @defaults={:controller=>"orders", :action=>"update"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:controller=>"orders", :action=>"update"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ebbeac @defaults={:controller=>"orders", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"orders", :action=>"destroy"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ec0f38 @defaults={:controller=>"orders", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"edit"} @name=:edit_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ed2738 @defaults={:controller=>"store", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/store\/index\Z/, :request_method=>/GET/} @defaults={:controller=>"store", :action=>"index"} @name=:store_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8eec6ec @defaults={:controller=>"products", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"index"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f0aafc @defaults={:controller=>"products", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"products", :action=>"create"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f2c418 @defaults={:controller=>"products", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"new"} @name=:new_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f43758 @defaults={:controller=>"products", :action=>"show"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"show"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f582fc @defaults={:controller=>"products", :action=>"update"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:controller=>"products", :action=>"update"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f66be0 @defaults={:controller=>"products", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"products", :action=>"destroy"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f7d8cc @defaults={:controller=>"products", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"edit"} @name=:edit_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8f98a64 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>], @recognition_graph=#<Rack::Mount::Multimap:0x8f98118 @hash={"info"=>#<Rack::Mount::Multimap:0x8f97fc4 @hash={}>, "admin"=>#<Rack::Mount::Multimap:0x8f97cf4 @hash={}>, "users"=>#<Rack::Mount::Multimap:0x8f974fc @hash={}>, "line_items"=>#<Rack::Mount::Multimap:0x8f96750 @hash={}>, "orders"=>#<Rack::Mount::Multimap:0x8f9565c @hash={}>, "store"=>#<Rack::Mount::Multimap:0x8f9475c @hash={}>, "products"=>#<Rack::Mount::Multimap:0x8f944dc @hash={}>, "rails"=>#<Rack::Mount::Multimap:0x8f88420 @hash={}>}>, @recognition_keys=[path_info[0], :request_method, path_info[1]], @generation_graph=#<Rack::Mount::Multimap:0x8f860a8 @hash={"who_bought"=>#<Rack::Mount::Multimap:0x8f85c84 @hash={"info"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x938c774 @defaults={:controller=>"info", :action=>"who_bought"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/info\/who_bought\Z/, :request_method=>/GET/} @defaults={:controller=>"info", :action=>"who_bought"} @name=:info_who_bought>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "login"=>#<Rack::Mount::Multimap:0x8f856bc @hash={"admin"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x824f588 @defaults={:controller=>"admin", :action=>"login"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/login\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"login"} @name=:admin_login>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "logout"=>#<Rack::Mount::Multimap:0x8f854c8 @hash={"admin"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8423e40 @defaults={:controller=>"admin", :action=>"logout"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/logout\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"logout"} @name=:admin_logout>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "index"=>#<Rack::Mount::Multimap:0x8f85310 @hash={"admin"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x85a4e04 @defaults={:controller=>"admin", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/admin\/index\Z/, :request_method=>/GET/} @defaults={:controller=>"admin", :action=>"index"} @name=:admin_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x864569c @defaults={:controller=>"users", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"index"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8a78ca0 @defaults={:controller=>"line_items", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"index"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8b3efa4 @defaults={:controller=>"orders", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"index"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8ed2738 @defaults={:controller=>"store", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/store\/index\Z/, :request_method=>/GET/} @defaults={:controller=>"store", :action=>"index"} @name=:store_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8eec6ec @defaults={:controller=>"products", :action=>"index"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"index"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "create"=>#<Rack::Mount::Multimap:0x8f8264c @hash={"users"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x86a8788 @defaults={:controller=>"users", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"users", :action=>"create"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8a938ac @defaults={:controller=>"line_items", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"line_items", :action=>"create"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8b6a604 @defaults={:controller=>"orders", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"orders", :action=>"create"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8f0aafc @defaults={:controller=>"products", :action=>"create"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:controller=>"products", :action=>"create"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "new"=>#<Rack::Mount::Multimap:0x8f82408 @hash={"users"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x89ee654 @defaults={:controller=>"users", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"new"} @name=:new_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8aa11b4 @defaults={:controller=>"line_items", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"new"} @name=:new_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8b7a950 @defaults={:controller=>"orders", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"new"} @name=:new_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8f2c418 @defaults={:controller=>"products", :action=>"new"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/new(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"new"} @name=:new_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "show"=>#<Rack::Mount::Multimap:0x8f822a0 @hash={"users"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a0ff34 @defaults={:controller=>"users", :action=>"show"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"show"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8accaf8 @defaults={:controller=>"line_items", :action=>"show"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"show"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8e9c660 @defaults={:controller=>"orders", :action=>"show"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"show"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8f43758 @defaults={:controller=>"products", :action=>"show"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"show"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "update"=>#<Rack::Mount::Multimap:0x8f820e8 @hash={"users"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a23f34 @defaults={:controller=>"users", :action=>"update"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:controller=>"users", :action=>"update"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8aecc54 @defaults={:controller=>"line_items", :action=>"update"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:controller=>"line_items", :action=>"update"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8ea33d4 @defaults={:controller=>"orders", :action=>"update"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:controller=>"orders", :action=>"update"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8f582fc @defaults={:controller=>"products", :action=>"update"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:controller=>"products", :action=>"update"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "destroy"=>#<Rack::Mount::Multimap:0x8f81e54 @hash={"users"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a311ac @defaults={:controller=>"users", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"users", :action=>"destroy"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8b02860 @defaults={:controller=>"line_items", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"line_items", :action=>"destroy"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8ebbeac @defaults={:controller=>"orders", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"orders", :action=>"destroy"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8f66be0 @defaults={:controller=>"products", :action=>"destroy"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:controller=>"products", :action=>"destroy"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "edit"=>#<Rack::Mount::Multimap:0x8f81b34 @hash={"users"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8a492fc @defaults={:controller=>"users", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/users\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"users", :action=>"edit"} @name=:edit_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8b22b9c @defaults={:controller=>"line_items", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/line_items\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"line_items", :action=>"edit"} @name=:edit_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8ec0f38 @defaults={:controller=>"orders", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/orders\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"orders", :action=>"edit"} @name=:edit_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8f7d8cc @defaults={:controller=>"products", :action=>"edit"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/products\/(?<id>[^\/.?]+)\/edit(?:\.(?<format>[^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:controller=>"products", :action=>"edit"} @name=:edit_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @defaults={}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>]}>, "properties"=>#<Rack::Mount::Multimap:0x8f7f44c @hash={"rails/info"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8f879d0 @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:0x8f98a64 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>]}>}>, @generation_keys=[:action, :controller]>, @url_helpers=#<Module:0x931dc34>>>>>, @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:0x8faef94>>, @file_server=#<Rack::File:0x8faef58 @root="/home/rubys/git/awdwr/work-193/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                         {:controller=>"info", :action=>"who_bought"}
GET    /admin/login                             {:controller=>"admin", :action=>"login"}
GET    /admin/logout                            {:controller=>"admin", :action=>"logout"}
GET    /admin/index                             {:controller=>"admin", :action=>"index"}
GET    /users(.:format)                         {:controller=>"users", :action=>"index"}
POST   /users(.:format)                         {:controller=>"users", :action=>"create"}
GET    /users/new(.:format)                     {:controller=>"users", :action=>"new"}
GET    /users/:id(.:format)                     {:controller=>"users", :action=>"show"}
PUT    /users/:id(.:format)                     {:controller=>"users", :action=>"update"}
DELETE /users/:id(.:format)                     {:controller=>"users", :action=>"destroy"}
GET    /users/:id/edit(.:format)                {:controller=>"users", :action=>"edit"}
GET    /line_items(.:format)                    {:controller=>"line_items", :action=>"index"}
POST   /line_items(.:format)                    {:controller=>"line_items", :action=>"create"}
GET    /line_items/new(.:format)                {:controller=>"line_items", :action=>"new"}
GET    /line_items/:id(.:format)                {:controller=>"line_items", :action=>"show"}
PUT    /line_items/:id(.:format)                {:controller=>"line_items", :action=>"update"}
DELETE /line_items/:id(.:format)                {:controller=>"line_items", :action=>"destroy"}
GET    /line_items/:id/edit(.:format)           {:controller=>"line_items", :action=>"edit"}
GET    /orders(.:format)                        {:controller=>"orders", :action=>"index"}
POST   /orders(.:format)                        {:controller=>"orders", :action=>"create"}
GET    /orders/new(.:format)                    {:controller=>"orders", :action=>"new"}
GET    /orders/:id(.:format)                    {:controller=>"orders", :action=>"show"}
PUT    /orders/:id(.:format)                    {:controller=>"orders", :action=>"update"}
DELETE /orders/:id(.:format)                    {:controller=>"orders", :action=>"destroy"}
GET    /orders/:id/edit(.:format)               {:controller=>"orders", :action=>"edit"}
GET    /store/index                             {:controller=>"store", :action=>"index"}
GET    /products(.:format)                      {:controller=>"products", :action=>"index"}
POST   /products(.:format)                      {:controller=>"products", :action=>"create"}
GET    /products/new(.:format)                  {:controller=>"products", :action=>"new"}
GET    /products/:id(.:format)                  {:controller=>"products", :action=>"show"}
PUT    /products/:id(.:format)                  {:controller=>"products", :action=>"update"}
DELETE /products/:id(.:format)                  {:controller=>"products", :action=>"destroy"}
GET    /products/:id/edit(.:format)             {:controller=>"products", :action=>"edit"}
ANY    /:controller(/:action(/:id(.:format)))   {}
ANY    /rails/info/properties                   {:controller=>"rails/info", :action=>"properties"}
=> nil
>> rs.recognize_path "/store"
=> {:controller=>"store", :action=>"index"}
>> rs.recognize_path "/store/add_to_cart/1"
=> {:controller=>"store", :action=>"add_to_cart", :id=>"1"}
>> rs.recognize_path "/store/add_to_cart/1.xml"
=> {:controller=>"store", :action=>"add_to_cart", :id=>"1", :format=>"xml"}
>> rs.generate :controller => :store
=> "/store/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"
 
/home/rubys/git/rails/bin/rails new view
/home/rubys/.rvm/gems/ruby-1.9.3-r28929/gems/thor-0.14.0/lib/thor/util.rb:219: Use RbConfig instead of obsolete and deprecated Config.
      create  
      create  README
      create  Rakefile
      create  config.ru
      create  .gitignore
      create  Gemfile
      create  app
      create  app/helpers/application_helper.rb
      create  app/views/layouts/application.html.erb
      create  app/controllers/application_controller.rb
      create  app/mailers
      create  app/models
      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/test.rb
      create  config/environments/production.rb
      create  config/initializers
      create  config/initializers/mime_types.rb
      create  config/initializers/inflections.rb
      create  config/initializers/session_store.rb
      create  config/initializers/backtrace_silencers.rb
      create  config/initializers/secret_token.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/500.html
      create  public/robots.txt
      create  public/favicon.ico
      create  public/422.html
      create  public/404.html
      create  public/index.html
      create  public/images
      create  public/images/rails.png
      create  public/stylesheets
      create  public/stylesheets/.gitkeep
      create  public/javascripts
      create  public/javascripts/prototype.js
      create  public/javascripts/dragdrop.js
      create  public/javascripts/rails.js
      create  public/javascripts/effects.js
      create  public/javascripts/controls.js
      create  public/javascripts/application.js
      create  script
      create  script/rails
      create  test
      create  test/performance/browsing_test.rb
      create  test/test_helper.rb
      create  test/fixtures
      create  test/unit
      create  test/functional
      create  test/integration
      create  tmp
      create  tmp/sessions
      create  tmp/sockets
      create  tmp/cache
      create  tmp/pids
      create  vendor/plugins
      create  vendor/plugins/.gitkeep
bundle install
/home/rubys/.rvm/gems/ruby-1.9.3-r28929/gems/bundler-1.0.0.rc.3/lib/bundler.rb:183: Use RbConfig instead of obsolete and deprecated Config.
Using rake (0.8.7) 
Using abstract (1.0.0) 
Using activesupport (3.0.0.rc) from source at /home/rubys/git/rails 
Using builder (2.1.2) 
Using i18n (0.4.1) 
Using activemodel (3.0.0.rc) from source at /home/rubys/git/rails 
Using erubis (2.6.6) 
Using rack (1.2.1) 
Using rack-mount (0.6.9) 
Using rack-test (0.5.4) 
Using tzinfo (0.3.22) 
Using actionpack (3.0.0.rc) from source at /home/rubys/git/rails 
Using mime-types (1.16) 
Using polyglot (0.3.1) 
Using treetop (1.4.8) 
Using mail (2.2.5) 
Using actionmailer (3.0.0.rc) from source at /home/rubys/git/rails 
Using arel (0.4.0) 
Using activerecord (3.0.0.rc) from source at /home/rubys/git/rails 
Using activeresource (3.0.0.rc) from source at /home/rubys/git/rails 
Using bundler (1.0.0.rc.3) 
Using thor (0.14.0) 
Using railties (3.0.0.rc) from source at /home/rubys/git/rails 
Using rails (3.0.0.rc) from source at /home/rubys/git/rails 
Using sqlite3-ruby (1.3.1) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
*[32m
Your bundle was installed to `/home/rubys/.rvm/gems/ruby-1.9.3-r28929`*[0m
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/data/code/e1/views/app/controllers/*.rb app/controllers
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/array_controller.rb' -> `app/controllers/array_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/article_controller.rb' -> `app/controllers/article_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/blog1_controller.rb' -> `app/controllers/blog1_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/blog2_controller.rb' -> `app/controllers/blog2_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/blog_controller.rb' -> `app/controllers/blog_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/builder_controller.rb' -> `app/controllers/builder_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/form_controller.rb' -> `app/controllers/form_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/form_for_controller.rb' -> `app/controllers/form_for_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/pager_controller.rb' -> `app/controllers/pager_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/partial_controller.rb' -> `app/controllers/partial_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/products_controller.rb' -> `app/controllers/products_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/rhtml_controller.rb' -> `app/controllers/rhtml_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/test_controller.rb' -> `app/controllers/test_controller.rb'
`/home/rubys/git/awdwr/data/code/e1/views/app/controllers/upload_controller.rb' -> `app/controllers/upload_controller.rb'
irb e1/routing/config/routes_for_blog.rb
/home/rubys/.rvm/gems/ruby-1.9.3-r28929/gems/bundler-1.0.0.rc.3/lib/bundler.rb:183: Use RbConfig instead of obsolete and deprecated Config.
Switch to inspect mode.
>> require "./config/environment.rb"
=> true
>> require "rails/console/app"
=> ["MiniTest", "PrettyPrint", "PP", "Test", "Mocha"]
 
>> rs = ActionController::Routing::Routes
=> #<ActionDispatch::Routing::RouteSet:0x8a978d0 @routes=[ANY    /:controller(/:action(/:id(.:format)))   {}, ANY    /rails/info/properties                   {:controller=>"rails/info", :action=>"properties"}], @named_routes=#<ActionDispatch::Routing::RouteSet::NamedRouteCollection:0x8a0f6d8 @routes={:rails_info_properties=>ANY    /rails/info/properties                   {: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:0x8a0f69c>>, @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?, :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, :url, :protocol, :ssl?, :raw_host_with_port, :host, :host_with_port, :port, :standard_port, :port_string, :server_port, :domain, :subdomains, :subdomain, :request_uri, :filtered_parameters, :filtered_env, :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, :scheme, :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, :taguri=, :taguri, :to_yaml_style, :to_yaml_properties, :syck_to_yaml, :to_yaml, :blank?, :present?, :presence, :duplicable?, :acts_like?, :try, :html_safe?, :`, :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, :to_sql, :equality_predicate_sql, :inequality_predicate_sql, :bind, :find_correlate_in, :let, :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, :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:0x8a953b4 @parameters_key="action_dispatch.request.path_parameters", @named_routes={:rails_info_properties=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8fa0f48 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>}, @recognition_key_analyzer=#<Rack::Mount::Analysis::Splitting:0x8a95350 @boundaries={:path_info=>{"/"=>2}}, @raw_keys=[{:path_info=>/\A\/(?<controller>.+?)(?:\/(?<action>[^\/.?]+)(?:\/(?<id>[^\/.?]+)(?:\.(?<format>[^\/.?]+))?)?)?\Z/}, {:path_info=>/\A\/rails\/info\/properties\Z/}], @key_frequency={}, @report=nil, @possible_keys=nil>, @generation_key_analyzer=#<Rack::Mount::Analysis::Frequency:0x8a952b0 @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?, :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, :cookie_jar, :flash, :url, :protocol, :ssl?, :raw_host_with_port, :host, :host_with_port, :port, :standard_port, :port_string, :server_port, :domain, :subdomains, :subdomain, :request_uri, :filtered_parameters, :filtered_env, :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, :scheme, :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, :taguri=, :taguri, :to_yaml_style, :to_yaml_properties, :syck_to_yaml, :to_yaml, :blank?, :present?, :presence, :duplicable?, :acts_like?, :try, :html_safe?, :`, :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, :to_sql, :equality_predicate_sql, :inequality_predicate_sql, :bind, :find_correlate_in, :let, :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, :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__], @optimized_recognize_defined=false, @routes=[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ee7d18 @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:0x8fa0f48 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties\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:0x83f7660 @app=#<View::Application:0x8a43dfc @config=#<Rails::Application::Configuration:0x8a34154 @root=#<Pathname:/home/rubys/git/awdwr/work-193/view>, @allow_concurrency=false, @consider_all_requests_local=true, @encoding="utf-8", @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::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, Rack::MethodOverride, ActionDispatch::Head, ActionDispatch::BestStandardsSupport], @paths=#<Rails::Paths::Root:0x85a7ba4 @children={"app"=>#<Rails::Paths::Path:0x85a7668 @children={"controllers"=>#<Rails::Paths::Path:0x85a73fc @children={}, @root=#<Rails::Paths::Root:0x85a7ba4 ...>, @paths=["app/controllers", "/home/rubys/git/rails/railties/lib/rails/application/info_routes"], @glob=nil, @eager_load=true>, "helpers"=>#<Rails::Paths::Path:0x85a7208 @children={}, @root=#<Rails::Paths::Root:0x85a7ba4 ...>, @paths=["app/helpers"], @glob=nil, @eager_load=true>, "models"=>#<Rails::Paths::Path:0x84f6728 @children={}, @root=#<Rails::Paths::Root:0x85a7ba4 ...>, @paths=["app/models"], @glob=nil, @eager_load=true>, "mailers"=>#<Rails::Paths::Path:0x84f62dc @children={}, @root=#<Rails::Paths::Root:0x85a7ba4 ...>, @paths=["app/mailers"], @glob=nil, @eager_load=true>, "views"=>#<Rails::Paths::Path:0x84f5c9c @children={}, @root=#<Rails::Paths::Root:0x85a7ba4 ...>, @paths=["app/views"], @glob=nil>}, @root=#<Rails::Paths::Root:0x85a7ba4 ...>, @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, :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:0x8a953b4 @parameters_key="action_dispatch.request.path_parameters", @named_routes={:rails_info_properties=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8fa0f48 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties\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:0x8ee7d18 @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:0x8fa0f48 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>], @recognition_graph=#<Rack::Mount::Multimap:0x9147d24 @hash={"\x00"=>#<Rack::Mount::Multimap:0x9147b80 @hash={"properties"=>#<Rack::Mount::Multimap:0x9147ab8 @hash={"info"=>#<Rack::Mount::Multimap:0x91479dc @hash={"rails"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ee7d18 @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:0x8fa0f48 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>]}>}>}>}>, @recognition_keys=[path_info[3], path_info[2], path_info[1], path_info[0]], @generation_graph=#<Rack::Mount::Multimap:0x9147568 @hash={"properties"=>#<Rack::Mount::Multimap:0x914734c @hash={"rails/info"=>[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0x8ee7d18 @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:0x8fa0f48 @defaults={:controller=>"rails/info", :action=>"properties"}, @glob_param=nil, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties\Z/} @defaults={:controller=>"rails/info", :action=>"properties"} @name=:rails_info_properties>]}>}>, @generation_keys=[:action, :controller]>, @url_helpers=#<Module:0x9104f4c>>>>>, @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:0x8fbbfc8>>, @file_server=#<Rack::File:0x8fbbf8c @root="/home/rubys/git/awdwr/work-193/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