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
>> require "./config/environment.rb"
=> true
>> require "rails/console/app"
=> nil
 
>> rs = ActionController::Routing::Routes
=> #<ActionDispatch::Routing::RouteSet:0xb6e64784 @set=#<Rack::Mount::RouteSet:0xb6ab320c @recognition_graph=nil, @generation_key_analyzer=#<Rack::Mount::Analysis::Frequency:0xb6ab31bc @key_frequency={}, @report=nil, @raw_keys=[{:action=>"who_bought", :controller=>"info"}, {:action=>"login", :controller=>"admin"}, {:action=>"logout", :controller=>"admin"}, {:action=>"index", :controller=>"admin"}, {:action=>"index", :controller=>"users"}, {:action=>"create", :controller=>"users"}, {:action=>"new", :controller=>"users"}, {:action=>"edit", :controller=>"users"}, {:action=>"show", :controller=>"users"}, {:action=>"update", :controller=>"users"}, {:action=>"destroy", :controller=>"users"}, {:action=>"index", :controller=>"line_items"}, {:action=>"create", :controller=>"line_items"}, {:action=>"new", :controller=>"line_items"}, {:action=>"edit", :controller=>"line_items"}, {:action=>"show", :controller=>"line_items"}, {:action=>"update", :controller=>"line_items"}, {:action=>"destroy", :controller=>"line_items"}, {:action=>"index", :controller=>"orders"}, {:action=>"create", :controller=>"orders"}, {:action=>"new", :controller=>"orders"}, {:action=>"edit", :controller=>"orders"}, {:action=>"show", :controller=>"orders"}, {:action=>"update", :controller=>"orders"}, {:action=>"destroy", :controller=>"orders"}, {:action=>"index", :controller=>"store"}, {:action=>"index", :controller=>"products"}, {:action=>"create", :controller=>"products"}, {:action=>"new", :controller=>"products"}, {:action=>"edit", :controller=>"products"}, {:action=>"show", :controller=>"products"}, {:action=>"update", :controller=>"products"}, {:action=>"destroy", :controller=>"products"}, {}, {:action=>"properties", :controller=>"rails/info"}], @possible_keys=nil>, @named_routes={:new_product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d01644 @glob_param=nil, @defaults={:action=>"new", :controller=>"products"}, @controllers={}> @conditions={:path_info=>/\A\/products\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"products"} @name=:new_product>, :products=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d05eb0 @glob_param=nil, @defaults={:action=>"create", :controller=>"products"}, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"products"} @name=:products>, :line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d79b58 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"line_items"}, @controllers={}> @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"line_items"} @name=:line_item>, :orders=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d64794 @glob_param=nil, @defaults={:action=>"create", :controller=>"orders"}, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"orders"} @name=:orders>, :edit_line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6db13b4 @glob_param=nil, @defaults={:action=>"edit", :controller=>"line_items"}, @controllers={}> @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"line_items"} @name=:edit_line_item>, :admin_login=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6fc4bd8 @glob_param=nil, @defaults={:action=>"login", :controller=>"admin"}, @controllers={}> @conditions={:path_info=>/\A\/admin\/login(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"login", :controller=>"admin"} @name=:admin_login>, :new_line_item=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6dba194 @glob_param=nil, @defaults={:action=>"new", :controller=>"line_items"}, @controllers={}> @conditions={:path_info=>/\A\/line_items\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"line_items"} @name=:new_line_item>, :admin_logout=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6f7b230 @glob_param=nil, @defaults={:action=>"logout", :controller=>"admin"}, @controllers={}> @conditions={:path_info=>/\A\/admin\/logout(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"logout", :controller=>"admin"} @name=:admin_logout>, :info_who_bought=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6a801a4 @glob_param=nil, @defaults={:action=>"who_bought", :controller=>"info"}, @controllers={}> @conditions={:path_info=>/\A\/info\/who_bought(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"who_bought", :controller=>"info"} @name=:info_who_bought>, :admin_index=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ef17ec @glob_param=nil, @defaults={:action=>"index", :controller=>"admin"}, @controllers={}> @conditions={:path_info=>/\A\/admin\/index(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"admin"} @name=:admin_index>, :store_index=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d26d04 @glob_param=nil, @defaults={:action=>"index", :controller=>"store"}, @controllers={}> @conditions={:path_info=>/\A\/store\/index(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"store"} @name=:store_index>, :product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cd2920 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"products"}, @controllers={}> @conditions={:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"products"} @name=:product>, :edit_order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d59830 @glob_param=nil, @defaults={:action=>"edit", :controller=>"orders"}, @controllers={}> @conditions={:path_info=>/\A\/orders\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"orders"} @name=:edit_order>, :new_order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d60a04 @glob_param=nil, @defaults={:action=>"new", :controller=>"orders"}, @controllers={}> @conditions={:path_info=>/\A\/orders\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"orders"} @name=:new_order>, :users=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ebbb24 @glob_param=nil, @defaults={:action=>"create", :controller=>"users"}, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"users"} @name=:users>, :order=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d2aea4 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"orders"}, @controllers={}> @conditions={:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"orders"} @name=:order>, :line_items=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb748efc4 @glob_param=nil, @defaults={:action=>"create", :controller=>"line_items"}, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"line_items"} @name=:line_items>, :edit_user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e97bac @glob_param=nil, @defaults={:action=>"edit", :controller=>"users"}, @controllers={}> @conditions={:path_info=>/\A\/users\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"users"} @name=:edit_user>, :rails_info_properties=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cbd278 @glob_param=nil, @defaults={:action=>"properties", :controller=>"rails/info"}, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.([^\/.?]+))?\Z/} @defaults={:action=>"properties", :controller=>"rails/info"} @name=:rails_info_properties>, :edit_product=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cf9390 @glob_param=nil, @defaults={:action=>"edit", :controller=>"products"}, @controllers={}> @conditions={:path_info=>/\A\/products\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"products"} @name=:edit_product>, :user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e57610 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"users"}, @controllers={}> @conditions={:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"users"} @name=:user>, :new_user=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6eb0940 @glob_param=nil, @defaults={:action=>"new", :controller=>"users"}, @controllers={}> @conditions={:path_info=>/\A\/users\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"users"} @name=:new_user>}, @valid_conditions=[:path, :put?, :to_yaml_properties, :remote_user, :url, :to_sql, :singleton_class, :methods, :auth_type, :send, :parameters, :taguri, :negotiate, :instance_values, :html_safe?, :taint, :to_enum, :instance_variable_defined?, :head?, :GET, :key?, :request_method, :taguri=, :acts_like?, :require_association, :etag_matches?, :headers, :equality_predicate_sql, :singleton_methods, :gateway_interface, :instance_eval, :standard_port?, :require_dependency, :symbolized_path_parameters, :request_uri, :instance_variable_names, :to_yaml_style, :format, :pragma, :silence_stderr, :enum_for, :content_type, :nil?, :options?, :server_name, :format=, :logger, :blank?, :protected_methods, :instance_exec, :find_correlate_in, :inequality_predicate_sql, :path_info, :query_parameters, :tainted?, :copy_instance_variables_from, :referer, :silence_stream, :untaint, :instance_of?, :remote_ip, :path_info=, :forgery_whitelisted?, :accepts, :trace?, :equal?, :server_protocol, :load_dependency, :hash, :present?, :private_methods, :path_translated, :fresh?, :`, :request_method_symbol, :presence, :user_agent, :kind_of?, :load, :subdomains, :freeze, :session, :POST, :eql?, :xhr?, :formats, :server_software, :body_stream, :values_at, :require_library_or_gem, :params, :cookie_jar, :id, :content_mime_type, :host, :duplicable?, :session=, :request_parameters, :fullpath, :public_methods, :query_string, :filtered_parameters, :method_symbol, :script_name, :gem, :suppress, :unloadable, :is_a?, :require, :subdomain, :as_json, :raw_post, :parseable_data?, :script_name=, :if_modified_since, :try, :tap, :accept_charset, :type, :content_length, :accept, :port, :instance_variables, :remote_addr, :authorization, :__id__, :frozen?, :scheme, :media_type_params, :to_a, :respond_to?, :display, :negotiate_mime, :ssl?, :returning, :method, :body, :accept_encoding, :silence_warnings, :if_none_match, :class, :media_type, :raw_host_with_port, :cookies, :get?, :to_yaml, :instance_variable_get, :remote_host, :==, :form_data?, :content_charset, :__send__, :===, :to_json, :extend, :to_s, :delete?, :session_options, :path_parameters, :env, :from, :to_param, :accept_language, :with_warnings, :debugger, :local?, :referrer, :port_string, :session_options=, :clone, :path_parameters=, :post?, :domain, :=~, :instance_variable_set, :remote_ident, :host_with_port, :filtered_env, :require_or_load, :with_options, :server_port, :reset_session, :flash, :not_modified?, :inspect, :[], :protocol, :xml_http_request?, :class_eval, :enable_warnings, :cache_control, :to_query, :[]=, :bind, :breakpoint, :standard_port, :dup, :ip, :object_id], @recognition_key_analyzer=#<Rack::Mount::Analysis::Splitting:0xb6ab31d0 @key_frequency={}, @report=nil, @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(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/users(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, {:path_info=>/\A\/users\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/users\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/}, {:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, {:path_info=>/\A\/line_items(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/line_items(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, {:path_info=>/\A\/line_items\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/line_items\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/}, {:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, {:path_info=>/\A\/orders(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/orders(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, {:path_info=>/\A\/orders\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/orders\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/}, {:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, {:path_info=>/\A\/store\/index(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/products(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/products(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, {:path_info=>/\A\/products\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/products\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, {:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/}, {:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, {:path_info=>/\A\/(.+?)(?:\/([^\/.?]+)(?:\/([^\/.?]+)(?:\.([^\/.?]+))?)?)?\Z/}, {:path_info=>/\A\/rails\/info\/properties(?:\.([^\/.?]+))?\Z/}], @boundaries={:path_info=>{"w"=>4, "x"=>2, "n"=>1, "."=>34, "/"=>22, "s"=>9, "t"=>6}, :request_method=>{}}, @possible_keys=nil>, @routes=[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6a801a4 @glob_param=nil, @defaults={:action=>"who_bought", :controller=>"info"}, @controllers={}> @conditions={:path_info=>/\A\/info\/who_bought(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"who_bought", :controller=>"info"} @name=:info_who_bought>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6fc4bd8 @glob_param=nil, @defaults={:action=>"login", :controller=>"admin"}, @controllers={}> @conditions={:path_info=>/\A\/admin\/login(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"login", :controller=>"admin"} @name=:admin_login>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6f7b230 @glob_param=nil, @defaults={:action=>"logout", :controller=>"admin"}, @controllers={}> @conditions={:path_info=>/\A\/admin\/logout(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"logout", :controller=>"admin"} @name=:admin_logout>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ef17ec @glob_param=nil, @defaults={:action=>"index", :controller=>"admin"}, @controllers={}> @conditions={:path_info=>/\A\/admin\/index(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"admin"} @name=:admin_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ecea58 @glob_param=nil, @defaults={:action=>"index", :controller=>"users"}, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"users"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ebbb24 @glob_param=nil, @defaults={:action=>"create", :controller=>"users"}, @controllers={}> @conditions={:path_info=>/\A\/users(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"users"} @name=:users>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6eb0940 @glob_param=nil, @defaults={:action=>"new", :controller=>"users"}, @controllers={}> @conditions={:path_info=>/\A\/users\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"users"} @name=:new_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e97bac @glob_param=nil, @defaults={:action=>"edit", :controller=>"users"}, @controllers={}> @conditions={:path_info=>/\A\/users\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"users"} @name=:edit_user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e863ac @glob_param=nil, @defaults={:action=>"show", :controller=>"users"}, @controllers={}> @conditions={:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"users"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e69f7c @glob_param=nil, @defaults={:action=>"update", :controller=>"users"}, @controllers={}> @conditions={:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:action=>"update", :controller=>"users"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e57610 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"users"}, @controllers={}> @conditions={:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"users"} @name=:user>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb72e12bc @glob_param=nil, @defaults={:action=>"index", :controller=>"line_items"}, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"line_items"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb748efc4 @glob_param=nil, @defaults={:action=>"create", :controller=>"line_items"}, @controllers={}> @conditions={:path_info=>/\A\/line_items(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"line_items"} @name=:line_items>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6dba194 @glob_param=nil, @defaults={:action=>"new", :controller=>"line_items"}, @controllers={}> @conditions={:path_info=>/\A\/line_items\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"line_items"} @name=:new_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6db13b4 @glob_param=nil, @defaults={:action=>"edit", :controller=>"line_items"}, @controllers={}> @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"line_items"} @name=:edit_line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6da422c @glob_param=nil, @defaults={:action=>"show", :controller=>"line_items"}, @controllers={}> @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"line_items"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d96668 @glob_param=nil, @defaults={:action=>"update", :controller=>"line_items"}, @controllers={}> @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:action=>"update", :controller=>"line_items"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d79b58 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"line_items"}, @controllers={}> @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"line_items"} @name=:line_item>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d6b4a4 @glob_param=nil, @defaults={:action=>"index", :controller=>"orders"}, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"orders"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d64794 @glob_param=nil, @defaults={:action=>"create", :controller=>"orders"}, @controllers={}> @conditions={:path_info=>/\A\/orders(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"orders"} @name=:orders>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d60a04 @glob_param=nil, @defaults={:action=>"new", :controller=>"orders"}, @controllers={}> @conditions={:path_info=>/\A\/orders\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"orders"} @name=:new_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d59830 @glob_param=nil, @defaults={:action=>"edit", :controller=>"orders"}, @controllers={}> @conditions={:path_info=>/\A\/orders\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"orders"} @name=:edit_order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d4a7b8 @glob_param=nil, @defaults={:action=>"show", :controller=>"orders"}, @controllers={}> @conditions={:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"orders"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d35070 @glob_param=nil, @defaults={:action=>"update", :controller=>"orders"}, @controllers={}> @conditions={:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:action=>"update", :controller=>"orders"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d2aea4 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"orders"}, @controllers={}> @conditions={:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"orders"} @name=:order>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d26d04 @glob_param=nil, @defaults={:action=>"index", :controller=>"store"}, @controllers={}> @conditions={:path_info=>/\A\/store\/index(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"store"} @name=:store_index>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d16080 @glob_param=nil, @defaults={:action=>"index", :controller=>"products"}, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"index", :controller=>"products"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d05eb0 @glob_param=nil, @defaults={:action=>"create", :controller=>"products"}, @controllers={}> @conditions={:path_info=>/\A\/products(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/} @defaults={:action=>"create", :controller=>"products"} @name=:products>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d01644 @glob_param=nil, @defaults={:action=>"new", :controller=>"products"}, @controllers={}> @conditions={:path_info=>/\A\/products\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"new", :controller=>"products"} @name=:new_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cf9390 @glob_param=nil, @defaults={:action=>"edit", :controller=>"products"}, @controllers={}> @conditions={:path_info=>/\A\/products\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"edit", :controller=>"products"} @name=:edit_product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ce4c88 @glob_param=nil, @defaults={:action=>"show", :controller=>"products"}, @controllers={}> @conditions={:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/} @defaults={:action=>"show", :controller=>"products"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cd9fa4 @glob_param=nil, @defaults={:action=>"update", :controller=>"products"}, @controllers={}> @conditions={:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/} @defaults={:action=>"update", :controller=>"products"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cd2920 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"products"}, @controllers={}> @conditions={:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/} @defaults={:action=>"destroy", :controller=>"products"} @name=:product>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ccbfbc @glob_param=nil, @defaults={}, @controllers={}> @conditions={:path_info=>/\A\/(.+?)(?:\/([^\/.?]+)(?:\/([^\/.?]+)(?:\.([^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cbd278 @glob_param=nil, @defaults={:action=>"properties", :controller=>"rails/info"}, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.([^\/.?]+))?\Z/} @defaults={:action=>"properties", :controller=>"rails/info"} @name=:rails_info_properties>], @parameters_key="action_dispatch.request.path_parameters", @generation_graph=nil, @recognition_keys=nil, @optimized_recognize_defined=false, @request_class=ActionDispatch::Request, @generation_keys=nil>, @disable_clear_and_finalize=false, @named_routes=#<ActionDispatch::Routing::RouteSet::NamedRouteCollection:0xb6d619a4 @module=#<Module:0xb6cf28d8>, @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_edit_user_url, :edit_user_url, :hash_for_edit_user_path, :edit_user_path, :hash_for_user_url, :user_url, :hash_for_user_path, :user_path, :hash_for_user_url, :user_url, :hash_for_user_path, :user_path, :hash_for_user_url, :user_url, :hash_for_user_path, :user_path, :hash_for_line_items_url, :line_items_url, :hash_for_line_items_path, :line_items_path, :hash_for_line_items_url, :line_items_url, :hash_for_line_items_path, :line_items_path, :hash_for_new_line_item_url, :new_line_item_url, :hash_for_new_line_item_path, :new_line_item_path, :hash_for_edit_line_item_url, :edit_line_item_url, :hash_for_edit_line_item_path, :edit_line_item_path, :hash_for_line_item_url, :line_item_url, :hash_for_line_item_path, :line_item_path, :hash_for_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_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_edit_order_url, :edit_order_url, :hash_for_edit_order_path, :edit_order_path, :hash_for_order_url, :order_url, :hash_for_order_path, :order_path, :hash_for_order_url, :order_url, :hash_for_order_path, :order_path, :hash_for_order_url, :order_url, :hash_for_order_path, :order_path, :hash_for_store_index_url, :store_index_url, :hash_for_store_index_path, :store_index_path, :hash_for_products_url, :products_url, :hash_for_products_path, :products_path, :hash_for_products_url, :products_url, :hash_for_products_path, :products_path, :hash_for_new_product_url, :new_product_url, :hash_for_new_product_path, :new_product_path, :hash_for_edit_product_url, :edit_product_url, :hash_for_edit_product_path, :edit_product_path, :hash_for_product_url, :product_url, :hash_for_product_path, :product_path, :hash_for_product_url, :product_url, :hash_for_product_path, :product_path, :hash_for_product_url, :product_url, :hash_for_product_path, :product_path, :hash_for_rails_info_properties_url, :rails_info_properties_url, :hash_for_rails_info_properties_path, :rails_info_properties_path], @routes={:new_product=>#<ActionDispatch::Routing::Route:0xb6d0184c @requirements={:action=>"new", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="new_product", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d01644 @glob_param=nil, @defaults={:action=>"new", :controller=>"products"}, @controllers={}>, @defaults={:action=>"new", :controller=>"products"}, @conditions={:path_info=>/\A\/products\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/products/new(.:format)">, :products=>#<ActionDispatch::Routing::Route:0xb6d06004 @requirements={:action=>"create", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="products", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d05eb0 @glob_param=nil, @defaults={:action=>"create", :controller=>"products"}, @controllers={}>, @defaults={:action=>"create", :controller=>"products"}, @conditions={:path_info=>/\A\/products(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, @path="/products(.:format)">, :line_item=>#<ActionDispatch::Routing::Route:0xb6d79f18 @requirements={:action=>"destroy", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="line_item", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d79b58 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"destroy", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, @path="/line_items/:id(.:format)">, :orders=>#<ActionDispatch::Routing::Route:0xb6d648c0 @requirements={:action=>"create", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="orders", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d64794 @glob_param=nil, @defaults={:action=>"create", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"create", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, @path="/orders(.:format)">, :edit_line_item=>#<ActionDispatch::Routing::Route:0xb6db14e0 @requirements={:action=>"edit", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="edit_line_item", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6db13b4 @glob_param=nil, @defaults={:action=>"edit", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"edit", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/line_items/:id/edit(.:format)">, :admin_login=>#<ActionDispatch::Routing::Route:0xb6fc54d4 @requirements={:action=>"login", :controller=>"admin"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="admin_login", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6fc4bd8 @glob_param=nil, @defaults={:action=>"login", :controller=>"admin"}, @controllers={}>, @defaults={:action=>"login", :controller=>"admin"}, @conditions={:path_info=>/\A\/admin\/login(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/admin/login(.:format)">, :new_line_item=>#<ActionDispatch::Routing::Route:0xb6dba2c0 @requirements={:action=>"new", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="new_line_item", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6dba194 @glob_param=nil, @defaults={:action=>"new", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"new", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/line_items/new(.:format)">, :admin_logout=>#<ActionDispatch::Routing::Route:0xb6f7bc94 @requirements={:action=>"logout", :controller=>"admin"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="admin_logout", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6f7b230 @glob_param=nil, @defaults={:action=>"logout", :controller=>"admin"}, @controllers={}>, @defaults={:action=>"logout", :controller=>"admin"}, @conditions={:path_info=>/\A\/admin\/logout(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/admin/logout(.:format)">, :info_who_bought=>#<ActionDispatch::Routing::Route:0xb6a7fbdc @requirements={:action=>"who_bought", :controller=>"info"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="info_who_bought", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6a801a4 @glob_param=nil, @defaults={:action=>"who_bought", :controller=>"info"}, @controllers={}>, @defaults={:action=>"who_bought", :controller=>"info"}, @conditions={:path_info=>/\A\/info\/who_bought(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/info/who_bought(.:format)">, :admin_index=>#<ActionDispatch::Routing::Route:0xb6ef1d64 @requirements={:action=>"index", :controller=>"admin"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="admin_index", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ef17ec @glob_param=nil, @defaults={:action=>"index", :controller=>"admin"}, @controllers={}>, @defaults={:action=>"index", :controller=>"admin"}, @conditions={:path_info=>/\A\/admin\/index(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/admin/index(.:format)">, :store_index=>#<ActionDispatch::Routing::Route:0xb6d26e94 @requirements={:action=>"index", :controller=>"store"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="store_index", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d26d04 @glob_param=nil, @defaults={:action=>"index", :controller=>"store"}, @controllers={}>, @defaults={:action=>"index", :controller=>"store"}, @conditions={:path_info=>/\A\/store\/index(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/store/index(.:format)">, :product=>#<ActionDispatch::Routing::Route:0xb6cd2a60 @requirements={:action=>"destroy", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="product", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cd2920 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"products"}, @controllers={}>, @defaults={:action=>"destroy", :controller=>"products"}, @conditions={:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, @path="/products/:id(.:format)">, :edit_order=>#<ActionDispatch::Routing::Route:0xb6d5995c @requirements={:action=>"edit", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="edit_order", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d59830 @glob_param=nil, @defaults={:action=>"edit", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"edit", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/orders/:id/edit(.:format)">, :new_order=>#<ActionDispatch::Routing::Route:0xb6d60b30 @requirements={:action=>"new", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="new_order", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d60a04 @glob_param=nil, @defaults={:action=>"new", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"new", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/orders/new(.:format)">, :users=>#<ActionDispatch::Routing::Route:0xb6ebbee4 @requirements={:action=>"create", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="users", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ebbb24 @glob_param=nil, @defaults={:action=>"create", :controller=>"users"}, @controllers={}>, @defaults={:action=>"create", :controller=>"users"}, @conditions={:path_info=>/\A\/users(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, @path="/users(.:format)">, :order=>#<ActionDispatch::Routing::Route:0xb6d2afd0 @requirements={:action=>"destroy", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="order", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d2aea4 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"destroy", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, @path="/orders/:id(.:format)">, :line_items=>#<ActionDispatch::Routing::Route:0xb7491094 @requirements={:action=>"create", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="line_items", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb748efc4 @glob_param=nil, @defaults={:action=>"create", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"create", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, @path="/line_items(.:format)">, :edit_user=>#<ActionDispatch::Routing::Route:0xb6e981b0 @requirements={:action=>"edit", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="edit_user", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e97bac @glob_param=nil, @defaults={:action=>"edit", :controller=>"users"}, @controllers={}>, @defaults={:action=>"edit", :controller=>"users"}, @conditions={:path_info=>/\A\/users\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/users/:id/edit(.:format)">, :rails_info_properties=>#<ActionDispatch::Routing::Route:0xb6cbd458 @requirements={:action=>"properties", :controller=>"rails/info"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="rails_info_properties", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cbd278 @glob_param=nil, @defaults={:action=>"properties", :controller=>"rails/info"}, @controllers={}>, @defaults={:action=>"properties", :controller=>"rails/info"}, @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.([^\/.?]+))?\Z/}, @path="/rails/info/properties(.:format)">, :edit_product=>#<ActionDispatch::Routing::Route:0xb6cf94bc @requirements={:action=>"edit", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="edit_product", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cf9390 @glob_param=nil, @defaults={:action=>"edit", :controller=>"products"}, @controllers={}>, @defaults={:action=>"edit", :controller=>"products"}, @conditions={:path_info=>/\A\/products\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/products/:id/edit(.:format)">, :user=>#<ActionDispatch::Routing::Route:0xb6e58074 @requirements={:action=>"destroy", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="user", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e57610 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"users"}, @controllers={}>, @defaults={:action=>"destroy", :controller=>"users"}, @conditions={:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, @path="/users/:id(.:format)">, :new_user=>#<ActionDispatch::Routing::Route:0xb6eb0cd8 @requirements={:action=>"new", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="new_user", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6eb0940 @glob_param=nil, @defaults={:action=>"new", :controller=>"users"}, @controllers={}>, @defaults={:action=>"new", :controller=>"users"}, @conditions={:path_info=>/\A\/users\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/users/new(.:format)">}>, @finalized=false, @valid_conditions=[:path, :put?, :to_yaml_properties, :remote_user, :url, :to_sql, :singleton_class, :methods, :auth_type, :send, :parameters, :taguri, :negotiate, :instance_values, :html_safe?, :taint, :to_enum, :instance_variable_defined?, :head?, :GET, :key?, :request_method, :taguri=, :acts_like?, :require_association, :etag_matches?, :headers, :equality_predicate_sql, :singleton_methods, :gateway_interface, :instance_eval, :standard_port?, :require_dependency, :symbolized_path_parameters, :request_uri, :instance_variable_names, :to_yaml_style, :format, :pragma, :silence_stderr, :enum_for, :content_type, :nil?, :options?, :server_name, :format=, :logger, :blank?, :protected_methods, :instance_exec, :find_correlate_in, :inequality_predicate_sql, :path_info, :query_parameters, :tainted?, :copy_instance_variables_from, :referer, :silence_stream, :untaint, :instance_of?, :remote_ip, :path_info=, :forgery_whitelisted?, :accepts, :trace?, :equal?, :server_protocol, :load_dependency, :hash, :present?, :private_methods, :path_translated, :fresh?, :`, :request_method_symbol, :presence, :user_agent, :kind_of?, :load, :subdomains, :freeze, :session, :POST, :eql?, :xhr?, :formats, :server_software, :body_stream, :values_at, :require_library_or_gem, :params, :content_mime_type, :host, :duplicable?, :session=, :request_parameters, :fullpath, :public_methods, :query_string, :filtered_parameters, :method_symbol, :script_name, :gem, :suppress, :unloadable, :is_a?, :require, :subdomain, :raw_post, :parseable_data?, :script_name=, :if_modified_since, :try, :tap, :accept_charset, :type, :content_length, :accept, :port, :instance_variables, :remote_addr, :authorization, :__id__, :frozen?, :scheme, :media_type_params, :to_a, :respond_to?, :display, :negotiate_mime, :ssl?, :returning, :method, :body, :accept_encoding, :silence_warnings, :if_none_match, :class, :media_type, :raw_host_with_port, :cookies, :get?, :to_yaml, :instance_variable_get, :remote_host, :==, :form_data?, :content_charset, :__send__, :===, :to_json, :extend, :to_s, :delete?, :session_options, :path_parameters, :env, :from, :to_param, :accept_language, :with_warnings, :local?, :debugger, :referrer, :port_string, :session_options=, :clone, :path_parameters=, :post?, :domain, :=~, :instance_variable_set, :remote_ident, :host_with_port, :filtered_env, :require_or_load, :with_options, :server_port, :reset_session, :not_modified?, :inspect, :[], :protocol, :xml_http_request?, :class_eval, :enable_warnings, :cache_control, :to_query, :[]=, :bind, :breakpoint, :standard_port, :dup, :ip, :object_id, :controller, :action], @controller_namespaces=#<Set: {}>, @routes=[#<ActionDispatch::Routing::Route:0xb6a7fbdc @requirements={:action=>"who_bought", :controller=>"info"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="info_who_bought", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6a801a4 @glob_param=nil, @defaults={:action=>"who_bought", :controller=>"info"}, @controllers={}>, @defaults={:action=>"who_bought", :controller=>"info"}, @conditions={:path_info=>/\A\/info\/who_bought(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/info/who_bought(.:format)">, #<ActionDispatch::Routing::Route:0xb6fc54d4 @requirements={:action=>"login", :controller=>"admin"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="admin_login", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6fc4bd8 @glob_param=nil, @defaults={:action=>"login", :controller=>"admin"}, @controllers={}>, @defaults={:action=>"login", :controller=>"admin"}, @conditions={:path_info=>/\A\/admin\/login(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/admin/login(.:format)">, #<ActionDispatch::Routing::Route:0xb6f7bc94 @requirements={:action=>"logout", :controller=>"admin"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="admin_logout", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6f7b230 @glob_param=nil, @defaults={:action=>"logout", :controller=>"admin"}, @controllers={}>, @defaults={:action=>"logout", :controller=>"admin"}, @conditions={:path_info=>/\A\/admin\/logout(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/admin/logout(.:format)">, #<ActionDispatch::Routing::Route:0xb6ef1d64 @requirements={:action=>"index", :controller=>"admin"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="admin_index", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ef17ec @glob_param=nil, @defaults={:action=>"index", :controller=>"admin"}, @controllers={}>, @defaults={:action=>"index", :controller=>"admin"}, @conditions={:path_info=>/\A\/admin\/index(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/admin/index(.:format)">, #<ActionDispatch::Routing::Route:0xb6ecec9c @requirements={:action=>"index", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="users", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ecea58 @glob_param=nil, @defaults={:action=>"index", :controller=>"users"}, @controllers={}>, @defaults={:action=>"index", :controller=>"users"}, @conditions={:path_info=>/\A\/users(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/users(.:format)">, #<ActionDispatch::Routing::Route:0xb6ebbee4 @requirements={:action=>"create", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="users", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ebbb24 @glob_param=nil, @defaults={:action=>"create", :controller=>"users"}, @controllers={}>, @defaults={:action=>"create", :controller=>"users"}, @conditions={:path_info=>/\A\/users(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, @path="/users(.:format)">, #<ActionDispatch::Routing::Route:0xb6eb0cd8 @requirements={:action=>"new", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="new_user", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6eb0940 @glob_param=nil, @defaults={:action=>"new", :controller=>"users"}, @controllers={}>, @defaults={:action=>"new", :controller=>"users"}, @conditions={:path_info=>/\A\/users\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/users/new(.:format)">, #<ActionDispatch::Routing::Route:0xb6e981b0 @requirements={:action=>"edit", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="edit_user", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e97bac @glob_param=nil, @defaults={:action=>"edit", :controller=>"users"}, @controllers={}>, @defaults={:action=>"edit", :controller=>"users"}, @conditions={:path_info=>/\A\/users\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/users/:id/edit(.:format)">, #<ActionDispatch::Routing::Route:0xb6e86758 @requirements={:action=>"show", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="user", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e863ac @glob_param=nil, @defaults={:action=>"show", :controller=>"users"}, @controllers={}>, @defaults={:action=>"show", :controller=>"users"}, @conditions={:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/users/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6e6aaf8 @requirements={:action=>"update", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="user", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e69f7c @glob_param=nil, @defaults={:action=>"update", :controller=>"users"}, @controllers={}>, @defaults={:action=>"update", :controller=>"users"}, @conditions={:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/}, @path="/users/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6e58074 @requirements={:action=>"destroy", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="user", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e57610 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"users"}, @controllers={}>, @defaults={:action=>"destroy", :controller=>"users"}, @conditions={:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, @path="/users/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb72e1eb0 @requirements={:action=>"index", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="line_items", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb72e12bc @glob_param=nil, @defaults={:action=>"index", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"index", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/line_items(.:format)">, #<ActionDispatch::Routing::Route:0xb7491094 @requirements={:action=>"create", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="line_items", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb748efc4 @glob_param=nil, @defaults={:action=>"create", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"create", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, @path="/line_items(.:format)">, #<ActionDispatch::Routing::Route:0xb6dba2c0 @requirements={:action=>"new", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="new_line_item", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6dba194 @glob_param=nil, @defaults={:action=>"new", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"new", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/line_items/new(.:format)">, #<ActionDispatch::Routing::Route:0xb6db14e0 @requirements={:action=>"edit", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="edit_line_item", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6db13b4 @glob_param=nil, @defaults={:action=>"edit", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"edit", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/line_items/:id/edit(.:format)">, #<ActionDispatch::Routing::Route:0xb6da4358 @requirements={:action=>"show", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="line_item", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6da422c @glob_param=nil, @defaults={:action=>"show", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"show", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/line_items/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6d96988 @requirements={:action=>"update", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="line_item", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d96668 @glob_param=nil, @defaults={:action=>"update", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"update", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/}, @path="/line_items/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6d79f18 @requirements={:action=>"destroy", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="line_item", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d79b58 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"destroy", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, @path="/line_items/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6d6bc74 @requirements={:action=>"index", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="orders", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d6b4a4 @glob_param=nil, @defaults={:action=>"index", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"index", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/orders(.:format)">, #<ActionDispatch::Routing::Route:0xb6d648c0 @requirements={:action=>"create", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="orders", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d64794 @glob_param=nil, @defaults={:action=>"create", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"create", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, @path="/orders(.:format)">, #<ActionDispatch::Routing::Route:0xb6d60b30 @requirements={:action=>"new", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="new_order", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d60a04 @glob_param=nil, @defaults={:action=>"new", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"new", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/orders/new(.:format)">, #<ActionDispatch::Routing::Route:0xb6d5995c @requirements={:action=>"edit", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="edit_order", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d59830 @glob_param=nil, @defaults={:action=>"edit", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"edit", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/orders/:id/edit(.:format)">, #<ActionDispatch::Routing::Route:0xb6d4a9e8 @requirements={:action=>"show", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="order", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d4a7b8 @glob_param=nil, @defaults={:action=>"show", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"show", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/orders/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6d351d8 @requirements={:action=>"update", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="order", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d35070 @glob_param=nil, @defaults={:action=>"update", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"update", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/}, @path="/orders/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6d2afd0 @requirements={:action=>"destroy", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="order", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d2aea4 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"destroy", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, @path="/orders/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6d26e94 @requirements={:action=>"index", :controller=>"store"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="store_index", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d26d04 @glob_param=nil, @defaults={:action=>"index", :controller=>"store"}, @controllers={}>, @defaults={:action=>"index", :controller=>"store"}, @conditions={:path_info=>/\A\/store\/index(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/store/index(.:format)">, #<ActionDispatch::Routing::Route:0xb6d161ac @requirements={:action=>"index", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="products", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d16080 @glob_param=nil, @defaults={:action=>"index", :controller=>"products"}, @controllers={}>, @defaults={:action=>"index", :controller=>"products"}, @conditions={:path_info=>/\A\/products(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/products(.:format)">, #<ActionDispatch::Routing::Route:0xb6d06004 @requirements={:action=>"create", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="products", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d05eb0 @glob_param=nil, @defaults={:action=>"create", :controller=>"products"}, @controllers={}>, @defaults={:action=>"create", :controller=>"products"}, @conditions={:path_info=>/\A\/products(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, @path="/products(.:format)">, #<ActionDispatch::Routing::Route:0xb6d0184c @requirements={:action=>"new", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="new_product", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d01644 @glob_param=nil, @defaults={:action=>"new", :controller=>"products"}, @controllers={}>, @defaults={:action=>"new", :controller=>"products"}, @conditions={:path_info=>/\A\/products\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/products/new(.:format)">, #<ActionDispatch::Routing::Route:0xb6cf94bc @requirements={:action=>"edit", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="edit_product", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cf9390 @glob_param=nil, @defaults={:action=>"edit", :controller=>"products"}, @controllers={}>, @defaults={:action=>"edit", :controller=>"products"}, @conditions={:path_info=>/\A\/products\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/products/:id/edit(.:format)">, #<ActionDispatch::Routing::Route:0xb6ce4f08 @requirements={:action=>"show", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="product", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ce4c88 @glob_param=nil, @defaults={:action=>"show", :controller=>"products"}, @controllers={}>, @defaults={:action=>"show", :controller=>"products"}, @conditions={:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/products/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6cda0d0 @requirements={:action=>"update", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="product", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cd9fa4 @glob_param=nil, @defaults={:action=>"update", :controller=>"products"}, @controllers={}>, @defaults={:action=>"update", :controller=>"products"}, @conditions={:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/}, @path="/products/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6cd2a60 @requirements={:action=>"destroy", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="product", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cd2920 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"products"}, @controllers={}>, @defaults={:action=>"destroy", :controller=>"products"}, @conditions={:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, @path="/products/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6ccce6c @requirements={}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @name=nil, @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ccbfbc @glob_param=nil, @defaults={}, @controllers={}>, @defaults={}, @conditions={:path_info=>/\A\/(.+?)(?:\/([^\/.?]+)(?:\/([^\/.?]+)(?:\.([^\/.?]+))?)?)?\Z/}, @path="/:controller(/:action(/:id(.:format)))">, #<ActionDispatch::Routing::Route:0xb6cbd458 @requirements={:action=>"properties", :controller=>"rails/info"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="rails_info_properties", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cbd278 @glob_param=nil, @defaults={:action=>"properties", :controller=>"rails/info"}, @controllers={}>, @defaults={:action=>"properties", :controller=>"rails/info"}, @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.([^\/.?]+))?\Z/}, @path="/rails/info/properties(.:format)">], @default_url_options={}, @controller_constraints=nil, @request_class=ActionDispatch::Request, @resources_path_names={:new=>"new", :edit=>"edit"}>
>> app
=> #<ActionDispatch::Integration::Session:0xb6779528 @request=nil, @accept="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,?, :load, :subdomains, :freeze, :session, :POST, :eql?, :xhr?, :formats, :server_software, :body_stream, :values_at, :require_library_or_gem, :params, :content_mime_type, :host, :duplicable?, :session=, :request_parameters, :fullpath, :public_methods, :query_string, :filtered_parameters, :method_symbol, :script_name, :gem, :suppress, :unloadable, :is_a?, :require, :subdomain, :raw_post, :parseable_data?, :script_name=, :if_modified_since, :try, :tap, :accept_charset, :type, :content_length, :accept, :port, :instance_variables, :remote_addr, :authorization, :__id__, :frozen?, :scheme, :media_type_params, :to_a, :respond_to?, :display, :negotiate_mime, :ssl?, :returning, :method, :body, :accept_encoding, :silence_warnings, :if_none_match, :class, :media_type, :raw_host_with_port, :cookies, :get?, :to_yaml, :instance_variable_get, :remote_host, :==, :form_data?, :content_charset, :__send__, :===, :to_json, :extend, :to_s, :delete?, :session_options, :path_parameters, :env, :from, :to_param, :accept_language, :with_warnings, :local?, :debugger, :referrer, :port_string, :session_options=, :clone, :path_parameters=, :post?, :domain, :=~, :instance_variable_set, :remote_ident, :host_with_port, :filtered_env, :require_or_load, :with_options, :server_port, :reset_session, :not_modified?, :inspect, :[], :protocol, :xml_http_request?, :class_eval, :enable_warnings, :cache_control, :to_query, :[]=, :bind, :breakpoint, :standard_port, :dup, :ip, :object_id, :controller, :action], @url_helpers=#<Module:0xb6a8ae4c>, @controller_namespaces=#<Set: {}>, @routes=[#<ActionDispatch::Routing::Route:0xb6a7fbdc @requirements={:action=>"who_bought", :controller=>"info"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="info_who_bought", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6a801a4 @glob_param=nil, @defaults={:action=>"who_bought", :controller=>"info"}, @controllers={}>, @defaults={:action=>"who_bought", :controller=>"info"}, @conditions={:path_info=>/\A\/info\/who_bought(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/info/who_bought(.:format)">, #<ActionDispatch::Routing::Route:0xb6fc54d4 @requirements={:action=>"login", :controller=>"admin"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="admin_login", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6fc4bd8 @glob_param=nil, @defaults={:action=>"login", :controller=>"admin"}, @controllers={}>, @defaults={:action=>"login", :controller=>"admin"}, @conditions={:path_info=>/\A\/admin\/login(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/admin/login(.:format)">, #<ActionDispatch::Routing::Route:0xb6f7bc94 @requirements={:action=>"logout", :controller=>"admin"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="admin_logout", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6f7b230 @glob_param=nil, @defaults={:action=>"logout", :controller=>"admin"}, @controllers={}>, @defaults={:action=>"logout", :controller=>"admin"}, @conditions={:path_info=>/\A\/admin\/logout(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/admin/logout(.:format)">, #<ActionDispatch::Routing::Route:0xb6ef1d64 @requirements={:action=>"index", :controller=>"admin"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="admin_index", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ef17ec @glob_param=nil, @defaults={:action=>"index", :controller=>"admin"}, @controllers={}>, @defaults={:action=>"index", :controller=>"admin"}, @conditions={:path_info=>/\A\/admin\/index(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/admin/index(.:format)">, #<ActionDispatch::Routing::Route:0xb6ecec9c @requirements={:action=>"index", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="users", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ecea58 @glob_param=nil, @defaults={:action=>"index", :controller=>"users"}, @controllers={}>, @defaults={:action=>"index", :controller=>"users"}, @conditions={:path_info=>/\A\/users(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/users(.:format)">, #<ActionDispatch::Routing::Route:0xb6ebbee4 @requirements={:action=>"create", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="users", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ebbb24 @glob_param=nil, @defaults={:action=>"create", :controller=>"users"}, @controllers={}>, @defaults={:action=>"create", :controller=>"users"}, @conditions={:path_info=>/\A\/users(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, @path="/users(.:format)">, #<ActionDispatch::Routing::Route:0xb6eb0cd8 @requirements={:action=>"new", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="new_user", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6eb0940 @glob_param=nil, @defaults={:action=>"new", :controller=>"users"}, @controllers={}>, @defaults={:action=>"new", :controller=>"users"}, @conditions={:path_info=>/\A\/users\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/users/new(.:format)">, #<ActionDispatch::Routing::Route:0xb6e981b0 @requirements={:action=>"edit", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="edit_user", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e97bac @glob_param=nil, @defaults={:action=>"edit", :controller=>"users"}, @controllers={}>, @defaults={:action=>"edit", :controller=>"users"}, @conditions={:path_info=>/\A\/users\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/users/:id/edit(.:format)">, #<ActionDispatch::Routing::Route:0xb6e86758 @requirements={:action=>"show", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="user", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e863ac @glob_param=nil, @defaults={:action=>"show", :controller=>"users"}, @controllers={}>, @defaults={:action=>"show", :controller=>"users"}, @conditions={:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/users/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6e6aaf8 @requirements={:action=>"update", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="user", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e69f7c @glob_param=nil, @defaults={:action=>"update", :controller=>"users"}, @controllers={}>, @defaults={:action=>"update", :controller=>"users"}, @conditions={:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/}, @path="/users/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6e58074 @requirements={:action=>"destroy", :controller=>"users"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="user", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6e57610 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"users"}, @controllers={}>, @defaults={:action=>"destroy", :controller=>"users"}, @conditions={:path_info=>/\A\/users\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, @path="/users/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb72e1eb0 @requirements={:action=>"index", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="line_items", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb72e12bc @glob_param=nil, @defaults={:action=>"index", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"index", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/line_items(.:format)">, #<ActionDispatch::Routing::Route:0xb7491094 @requirements={:action=>"create", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="line_items", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb748efc4 @glob_param=nil, @defaults={:action=>"create", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"create", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, @path="/line_items(.:format)">, #<ActionDispatch::Routing::Route:0xb6dba2c0 @requirements={:action=>"new", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="new_line_item", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6dba194 @glob_param=nil, @defaults={:action=>"new", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"new", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/line_items/new(.:format)">, #<ActionDispatch::Routing::Route:0xb6db14e0 @requirements={:action=>"edit", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="edit_line_item", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6db13b4 @glob_param=nil, @defaults={:action=>"edit", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"edit", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/line_items/:id/edit(.:format)">, #<ActionDispatch::Routing::Route:0xb6da4358 @requirements={:action=>"show", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="line_item", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6da422c @glob_param=nil, @defaults={:action=>"show", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"show", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/line_items/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6d96988 @requirements={:action=>"update", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="line_item", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d96668 @glob_param=nil, @defaults={:action=>"update", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"update", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/}, @path="/line_items/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6d79f18 @requirements={:action=>"destroy", :controller=>"line_items"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="line_item", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d79b58 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"line_items"}, @controllers={}>, @defaults={:action=>"destroy", :controller=>"line_items"}, @conditions={:path_info=>/\A\/line_items\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, @path="/line_items/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6d6bc74 @requirements={:action=>"index", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="orders", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d6b4a4 @glob_param=nil, @defaults={:action=>"index", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"index", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/orders(.:format)">, #<ActionDispatch::Routing::Route:0xb6d648c0 @requirements={:action=>"create", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="orders", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d64794 @glob_param=nil, @defaults={:action=>"create", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"create", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, @path="/orders(.:format)">, #<ActionDispatch::Routing::Route:0xb6d60b30 @requirements={:action=>"new", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="new_order", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d60a04 @glob_param=nil, @defaults={:action=>"new", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"new", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/orders/new(.:format)">, #<ActionDispatch::Routing::Route:0xb6d5995c @requirements={:action=>"edit", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="edit_order", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d59830 @glob_param=nil, @defaults={:action=>"edit", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"edit", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/orders/:id/edit(.:format)">, #<ActionDispatch::Routing::Route:0xb6d4a9e8 @requirements={:action=>"show", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="order", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d4a7b8 @glob_param=nil, @defaults={:action=>"show", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"show", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/orders/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6d351d8 @requirements={:action=>"update", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="order", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d35070 @glob_param=nil, @defaults={:action=>"update", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"update", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/}, @path="/orders/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6d2afd0 @requirements={:action=>"destroy", :controller=>"orders"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="order", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d2aea4 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"orders"}, @controllers={}>, @defaults={:action=>"destroy", :controller=>"orders"}, @conditions={:path_info=>/\A\/orders\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, @path="/orders/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6d26e94 @requirements={:action=>"index", :controller=>"store"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="store_index", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d26d04 @glob_param=nil, @defaults={:action=>"index", :controller=>"store"}, @controllers={}>, @defaults={:action=>"index", :controller=>"store"}, @conditions={:path_info=>/\A\/store\/index(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/store/index(.:format)">, #<ActionDispatch::Routing::Route:0xb6d161ac @requirements={:action=>"index", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="products", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d16080 @glob_param=nil, @defaults={:action=>"index", :controller=>"products"}, @controllers={}>, @defaults={:action=>"index", :controller=>"products"}, @conditions={:path_info=>/\A\/products(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/products(.:format)">, #<ActionDispatch::Routing::Route:0xb6d06004 @requirements={:action=>"create", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="products", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d05eb0 @glob_param=nil, @defaults={:action=>"create", :controller=>"products"}, @controllers={}>, @defaults={:action=>"create", :controller=>"products"}, @conditions={:path_info=>/\A\/products(?:\.([^\/.?]+))?\Z/, :request_method=>/POST/}, @path="/products(.:format)">, #<ActionDispatch::Routing::Route:0xb6d0184c @requirements={:action=>"new", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="new_product", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6d01644 @glob_param=nil, @defaults={:action=>"new", :controller=>"products"}, @controllers={}>, @defaults={:action=>"new", :controller=>"products"}, @conditions={:path_info=>/\A\/products\/new(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/products/new(.:format)">, #<ActionDispatch::Routing::Route:0xb6cf94bc @requirements={:action=>"edit", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="edit_product", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cf9390 @glob_param=nil, @defaults={:action=>"edit", :controller=>"products"}, @controllers={}>, @defaults={:action=>"edit", :controller=>"products"}, @conditions={:path_info=>/\A\/products\/([^\/.?]+)\/edit(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/products/:id/edit(.:format)">, #<ActionDispatch::Routing::Route:0xb6ce4f08 @requirements={:action=>"show", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="product", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ce4c88 @glob_param=nil, @defaults={:action=>"show", :controller=>"products"}, @controllers={}>, @defaults={:action=>"show", :controller=>"products"}, @conditions={:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/GET/}, @path="/products/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6cda0d0 @requirements={:action=>"update", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="product", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cd9fa4 @glob_param=nil, @defaults={:action=>"update", :controller=>"products"}, @controllers={}>, @defaults={:action=>"update", :controller=>"products"}, @conditions={:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/PUT/}, @path="/products/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6cd2a60 @requirements={:action=>"destroy", :controller=>"products"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:id, :format], @name="product", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cd2920 @glob_param=nil, @defaults={:action=>"destroy", :controller=>"products"}, @controllers={}>, @defaults={:action=>"destroy", :controller=>"products"}, @conditions={:path_info=>/\A\/products\/([^\/.?]+)(?:\.([^\/.?]+))?\Z/, :request_method=>/DELETE/}, @path="/products/:id(.:format)">, #<ActionDispatch::Routing::Route:0xb6ccce6c @requirements={}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @name=nil, @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6ccbfbc @glob_param=nil, @defaults={}, @controllers={}>, @defaults={}, @conditions={:path_info=>/\A\/(.+?)(?:\/([^\/.?]+)(?:\/([^\/.?]+)(?:\.([^\/.?]+))?)?)?\Z/}, @path="/:controller(/:action(/:id(.:format)))">, #<ActionDispatch::Routing::Route:0xb6cbd458 @requirements={:action=>"properties", :controller=>"rails/info"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6e64784 ...>, @segment_keys=[:format], @name="rails_info_properties", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6cbd278 @glob_param=nil, @defaults={:action=>"properties", :controller=>"rails/info"}, @controllers={}>, @defaults={:action=>"properties", :controller=>"rails/info"}, @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.([^\/.?]+))?\Z/}, @path="/rails/info/properties(.:format)">], @default_url_options={}, @controller_constraints=nil, @request_class=ActionDispatch::Request, @resources_path_names={:new=>"new", :edit=>"edit"}>, @_all_autoload_paths=["/home/rubys/git/awdwr/work/depot/app/helpers", "/home/rubys/git/awdwr/work/depot/app/controllers", "/home/rubys/git/awdwr/work/depot/app/mailers", "/home/rubys/git/awdwr/work/depot/app/models"], @routes_reloader=#<ActiveSupport::FileUpdateChecker:0xb6c3335c @last_update_at=Sun Sep 05 21:12:45 -0400 2010, @block=#<Proc:0xb6f74c64@/home/rubys/git/rails/railties/lib/rails/application.rb:120>, @paths=["/home/rubys/git/awdwr/work/depot/config/routes.rb", "/home/rubys/git/rails/railties/lib/rails/info_routes.rb"]>>, @request_count=0, @host="www.example.com", @controller=nil, @response=nil, @_mock_session=nil>
 
>> puts rs.routes
GET    /info/who_bought(.:format)               {:action=>"who_bought", :controller=>"info"}
GET    /admin/login(.:format)                   {:action=>"login", :controller=>"admin"}
GET    /admin/logout(.:format)                  {:action=>"logout", :controller=>"admin"}
GET    /admin/index(.:format)                   {:action=>"index", :controller=>"admin"}
GET    /users(.:format)                         {:action=>"index", :controller=>"users"}
POST   /users(.:format)                         {:action=>"create", :controller=>"users"}
GET    /users/new(.:format)                     {:action=>"new", :controller=>"users"}
GET    /users/:id/edit(.:format)                {:action=>"edit", :controller=>"users"}
GET    /users/:id(.:format)                     {:action=>"show", :controller=>"users"}
PUT    /users/:id(.:format)                     {:action=>"update", :controller=>"users"}
DELETE /users/:id(.:format)                     {:action=>"destroy", :controller=>"users"}
GET    /line_items(.:format)                    {:action=>"index", :controller=>"line_items"}
POST   /line_items(.:format)                    {:action=>"create", :controller=>"line_items"}
GET    /line_items/new(.:format)                {:action=>"new", :controller=>"line_items"}
GET    /line_items/:id/edit(.:format)           {:action=>"edit", :controller=>"line_items"}
GET    /line_items/:id(.:format)                {:action=>"show", :controller=>"line_items"}
PUT    /line_items/:id(.:format)                {:action=>"update", :controller=>"line_items"}
DELETE /line_items/:id(.:format)                {:action=>"destroy", :controller=>"line_items"}
GET    /orders(.:format)                        {:action=>"index", :controller=>"orders"}
POST   /orders(.:format)                        {:action=>"create", :controller=>"orders"}
GET    /orders/new(.:format)                    {:action=>"new", :controller=>"orders"}
GET    /orders/:id/edit(.:format)               {:action=>"edit", :controller=>"orders"}
GET    /orders/:id(.:format)                    {:action=>"show", :controller=>"orders"}
PUT    /orders/:id(.:format)                    {:action=>"update", :controller=>"orders"}
DELETE /orders/:id(.:format)                    {:action=>"destroy", :controller=>"orders"}
GET    /store/index(.:format)                   {:action=>"index", :controller=>"store"}
GET    /products(.:format)                      {:action=>"index", :controller=>"products"}
POST   /products(.:format)                      {:action=>"create", :controller=>"products"}
GET    /products/new(.:format)                  {:action=>"new", :controller=>"products"}
GET    /products/:id/edit(.:format)             {:action=>"edit", :controller=>"products"}
GET    /products/:id(.:format)                  {:action=>"show", :controller=>"products"}
PUT    /products/:id(.:format)                  {:action=>"update", :controller=>"products"}
DELETE /products/:id(.:format)                  {:action=>"destroy", :controller=>"products"}
ANY    /:controller(/:action(/:id(.:format)))   {}
ANY    /rails/info/properties(.:format)         {:action=>"properties", :controller=>"rails/info"}
=> nil
>> rs.recognize_path "/store"
=> {:action=>"index", :controller=>"store"}
>> rs.recognize_path "/store/add_to_cart/1"
=> {:action=>"add_to_cart", :id=>"1", :controller=>"store"}
>> rs.recognize_path "/store/add_to_cart/1.xml"
=> {:action=>"add_to_cart", :format=>"xml", :id=>"1", :controller=>"store"}
>> 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"
 
ruby -rubygems /home/rubys/git/rails/bin/rails new view
      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
Using rake (0.8.7) 
Using abstract (1.0.0) 
Using activesupport (3.0.1.pre) from source at /home/rubys/git/rails 
Using builder (2.1.2) 
Using i18n (0.4.1) 
Using activemodel (3.0.1.pre) from source at /home/rubys/git/rails 
Using erubis (2.6.6) 
Using rack (1.2.1) 
Using rack-mount (0.6.13) 
Using rack-test (0.5.4) 
Using tzinfo (0.3.23) 
Using actionpack (3.0.1.pre) 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.1.pre) from source at /home/rubys/git/rails 
Using arel (1.0.1) from source at /home/rubys/git/arel 
Using activerecord (3.0.1.pre) from source at /home/rubys/git/rails 
Using activeresource (3.0.1.pre) from source at /home/rubys/git/rails 
Using bundler (1.0.0) 
Using thor (0.14.0) 
Using railties (3.0.1.pre) from source at /home/rubys/git/rails 
Using rails (3.0.1.pre) 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.8.7-p302`*[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
>> require "./config/environment.rb"
=> true
>> require "rails/console/app"
=> nil
 
>> rs = ActionController::Routing::Routes
=> #<ActionDispatch::Routing::RouteSet:0xb6dbeac8 @set=#<Rack::Mount::RouteSet:0xb6a8959c @recognition_graph=nil, @generation_key_analyzer=#<Rack::Mount::Analysis::Frequency:0xb6a8954c @key_frequency={}, @report=nil, @raw_keys=[{}, {:action=>"properties", :controller=>"rails/info"}], @possible_keys=nil>, @named_routes={:rails_info_properties=>#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb69ed584 @glob_param=nil, @defaults={:action=>"properties", :controller=>"rails/info"}, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.([^\/.?]+))?\Z/} @defaults={:action=>"properties", :controller=>"rails/info"} @name=:rails_info_properties>}, @valid_conditions=[:path, :put?, :to_yaml_properties, :remote_user, :url, :to_sql, :singleton_class, :methods, :auth_type, :send, :parameters, :flash, :taguri, :negotiate, :instance_values, :html_safe?, :taint, :to_enum, :instance_variable_defined?, :head?, :GET, :key?, :request_method, :taguri=, :acts_like?, :require_association, :etag_matches?, :headers, :equality_predicate_sql, :singleton_methods, :gateway_interface, :instance_eval, :standard_port?, :require_dependency, :symbolized_path_parameters, :request_uri, :instance_variable_names, :to_yaml_style, :format, :pragma, :silence_stderr, :enum_for, :content_type, :nil?, :options?, :server_name, :format=, :logger, :cookie_jar, :blank?, :protected_methods, :instance_exec, :find_correlate_in, :inequality_predicate_sql, :path_info, :query_parameters, :tainted?, :copy_instance_variables_from, :referer, :silence_stream, :untaint, :instance_of?, :remote_ip, :path_info=, :forgery_whitelisted?, :accepts, :trace?, :equal?, :server_protocol, :load_dependency, :hash, :present?, :private_methods, :path_translated, :fresh?, :`, :request_method_symbol, :presence, :user_agent, :kind_of?, :load, :subdomains, :freeze, :session, :POST, :eql?, :xhr?, :formats, :server_software, :body_stream, :values_at, :require_library_or_gem, :params, :id, :content_mime_type, :host, :duplicable?, :session=, :request_parameters, :fullpath, :public_methods, :query_string, :filtered_parameters, :method_symbol, :script_name, :gem, :suppress, :unloadable, :is_a?, :require, :subdomain, :raw_post, :parseable_data?, :script_name=, :if_modified_since, :try, :tap, :accept_charset, :type, :content_length, :accept, :port, :instance_variables, :remote_addr, :authorization, :__id__, :frozen?, :scheme, :media_type_params, :to_a, :respond_to?, :display, :negotiate_mime, :ssl?, :returning, :method, :body, :accept_encoding, :silence_warnings, :if_none_match, :class, :media_type, :raw_host_with_port, :cookies, :get?, :to_yaml, :instance_variable_get, :remote_host, :==, :form_data?, :content_charset, :__send__, :===, :to_json, :extend, :to_s, :delete?, :session_options, :path_parameters, :env, :from, :to_param, :accept_language, :with_warnings, :local?, :debugger, :referrer, :port_string, :session_options=, :clone, :path_parameters=, :post?, :domain, :=~, :instance_variable_set, :remote_ident, :host_with_port, :filtered_env, :require_or_load, :with_options, :server_port, :reset_session, :not_modified?, :inspect, :[], :protocol, :xml_http_request?, :class_eval, :enable_warnings, :cache_control, :to_query, :[]=, :bind, :breakpoint, :standard_port, :dup, :ip, :object_id], @recognition_key_analyzer=#<Rack::Mount::Analysis::Splitting:0xb6a89560 @key_frequency={}, @report=nil, @raw_keys=[{:path_info=>/\A\/(.+?)(?:\/([^\/.?]+)(?:\/([^\/.?]+)(?:\.([^\/.?]+))?)?)?\Z/}, {:path_info=>/\A\/rails\/info\/properties(?:\.([^\/.?]+))?\Z/}], @boundaries={:path_info=>{"."=>1, "/"=>2, "s"=>1}}, @possible_keys=nil>, @routes=[#<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6a325d0 @glob_param=nil, @defaults={}, @controllers={}> @conditions={:path_info=>/\A\/(.+?)(?:\/([^\/.?]+)(?:\/([^\/.?]+)(?:\.([^\/.?]+))?)?)?\Z/} @defaults={} @name=nil>, #<Rack::Mount::Route @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb69ed584 @glob_param=nil, @defaults={:action=>"properties", :controller=>"rails/info"}, @controllers={}> @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.([^\/.?]+))?\Z/} @defaults={:action=>"properties", :controller=>"rails/info"} @name=:rails_info_properties>], @parameters_key="action_dispatch.request.path_parameters", @generation_graph=nil, @recognition_keys=nil, @optimized_recognize_defined=false, @request_class=ActionDispatch::Request, @generation_keys=nil>, @disable_clear_and_finalize=false, @named_routes=#<ActionDispatch::Routing::RouteSet::NamedRouteCollection:0xb6cbf21c @module=#<Module:0xb6c50178>, @helpers=[:hash_for_rails_info_properties_url, :rails_info_properties_url, :hash_for_rails_info_properties_path, :rails_info_properties_path], @routes={:rails_info_properties=>#<ActionDispatch::Routing::Route:0xb69ed764 @requirements={:action=>"properties", :controller=>"rails/info"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6dbeac8 ...>, @name="rails_info_properties", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb69ed584 @glob_param=nil, @defaults={:action=>"properties", :controller=>"rails/info"}, @controllers={}>, @defaults={:action=>"properties", :controller=>"rails/info"}, @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.([^\/.?]+))?\Z/}, @path="/rails/info/properties(.:format)", @segment_keys=[:format]>}>, @finalized=false, @valid_conditions=[:path, :put?, :to_yaml_properties, :remote_user, :url, :to_sql, :singleton_class, :methods, :auth_type, :send, :parameters, :taguri, :negotiate, :instance_values, :html_safe?, :taint, :to_enum, :instance_variable_defined?, :head?, :GET, :key?, :request_method, :taguri=, :acts_like?, :require_association, :etag_matches?, :headers, :equality_predicate_sql, :singleton_methods, :gateway_interface, :instance_eval, :standard_port?, :require_dependency, :symbolized_path_parameters, :request_uri, :instance_variable_names, :to_yaml_style, :format, :pragma, :silence_stderr, :enum_for, :content_type, :nil?, :options?, :server_name, :format=, :logger, :blank?, :protected_methods, :instance_exec, :find_correlate_in, :inequality_predicate_sql, :path_info, :query_parameters, :tainted?, :copy_instance_variables_from, :referer, :silence_stream, :untaint, :instance_of?, :remote_ip, :path_info=, :forgery_whitelisted?, :accepts, :trace?, :equal?, :server_protocol, :load_dependency, :hash, :present?, :private_methods, :path_translated, :fresh?, :`, :request_method_symbol, :presence, :user_agent, :kind_of?, :load, :subdomains, :freeze, :session, :POST, :eql?, :xhr?, :formats, :server_software, :body_stream, :values_at, :require_library_or_gem, :params, :content_mime_type, :host, :duplicable?, :session=, :request_parameters, :fullpath, :public_methods, :query_string, :filtered_parameters, :method_symbol, :script_name, :gem, :suppress, :unloadable, :is_a?, :require, :subdomain, :raw_post, :parseable_data?, :script_name=, :if_modified_since, :try, :tap, :accept_charset, :type, :content_length, :accept, :port, :instance_variables, :remote_addr, :authorization, :__id__, :frozen?, :scheme, :media_type_params, :to_a, :respond_to?, :display, :negotiate_mime, :ssl?, :returning, :method, :body, :accept_encoding, :silence_warnings, :if_none_match, :class, :media_type, :raw_host_with_port, :cookies, :get?, :to_yaml, :instance_variable_get, :remote_host, :==, :form_data?, :content_charset, :__send__, :===, :to_json, :extend, :to_s, :delete?, :session_options, :path_parameters, :env, :from, :to_param, :accept_language, :with_warnings, :local?, :debugger, :referrer, :port_string, :session_options=, :clone, :path_parameters=, :post?, :domain, :=~, :instance_variable_set, :remote_ident, :host_with_port, :filtered_env, :require_or_load, :with_options, :server_port, :reset_session, :not_modified?, :inspect, :[], :protocol, :xml_http_request?, :class_eval, :enable_warnings, :cache_control, :to_query, :[]=, :bind, :breakpoint, :standard_port, :dup, :ip, :object_id, :controller, :action], @controller_namespaces=#<Set: {}>, @routes=[#<ActionDispatch::Routing::Route:0xb6a3215c @requirements={}, @set=#<ActionDispatch::Routing::RouteSet:0xb6dbeac8 ...>, @name=nil, @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6a325d0 @glob_param=nil, @defaults={}, @controllers={}>, @defaults={}, @conditions={:path_info=>/\A\/(.+?)(?:\/([^\/.?]+)(?:\/([^\/.?]+)(?:\.([^\/.?]+))?)?)?\Z/}, @path="/:controller(/:action(/:id(.:format)))">, #<ActionDispatch::Routing::Route:0xb69ed764 @requirements={:action=>"properties", :controller=>"rails/info"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6dbeac8 ...>, @name="rails_info_properties", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb69ed584 @glob_param=nil, @defaults={:action=>"properties", :controller=>"rails/info"}, @controllers={}>, @defaults={:action=>"properties", :controller=>"rails/info"}, @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.([^\/.?]+))?\Z/}, @path="/rails/info/properties(.:format)", @segment_keys=[:format]>], @default_url_options={}, @controller_constraints=nil, @request_class=ActionDispatch::Request, @resources_path_names={:new=>"new", :edit=>"edit"}>
>> app
=> #<ActionDispatch::Integration::Session:0xb6ee56f4 @request=nil, @https=false, @named_routes_configured=true, @request_count=0, @app=#<View::Application:0xb6e6d80c @initializers=[#<Rails::Initializable::Initializer:0xb6e1d578 @context=#<View::Application:0xb6e6d80c ...>, @name=:set_load_path, @block=#<Proc:0xb6ec2ba4@/home/rubys/git/rails/railties/lib/rails/engine.rb:144>, @options={:before=>:bootstrap_hook}>, #<Rails::Initializable::Initializer:0xb6e1d564 @context=#<View::Application:0xb6e6d80c ...>, @name=:set_autoload_paths, @block=#<Proc:0xb6ec26b8@/home/rubys/git/rails/railties/lib/rails/engine.rb:156>, @options={:after=>:set_load_path, :before=>:bootstrap_hook}>, #<Rails::Initializable::Initializer:0xb6e1d53c @context=#<View::Application:0xb6e6d80c ...>, @name=:add_routing_paths, @block=#<Proc:0xb6ec1fec@/home/rubys/git/rails/railties/lib/rails/engine.rb:166>, @options={:after=>:set_autoload_paths}>, #<Rails::Initializable::Initializer:0xb6e1d514 @context=#<View::Application:0xb6e6d80c ...>, @name=:add_routing_namespaces, @block=#<Proc:0xb6ec1560@/home/rubys/git/rails/railties/lib/rails/engine.rb:173>, @options={:after=>:add_routing_paths}>, #<Rails::Initializable::Initializer:0xb6e1d4ec @context=#<View::Application:0xb6e6d80c ...>, @name=:add_locales, @block=#<Proc:0xb6ec1344@/home/rubys/git/rails/railties/lib/rails/engine.rb:185>, @options={:after=>:add_routing_namespaces}>, #<Rails::Initializable::Initializer:0xb6e1d4c4 @context=#<View::Application:0xb6e6d80c ...>, @name=:add_view_paths, @block=#<Proc:0xb6ec104c@/home/rubys/git/rails/railties/lib/rails/engine.rb:189>, @options={:after=>:add_locales}>, #<Rails::Initializable::Initializer:0xb6e1d49c @context=#<View::Application:0xb6e6d80c ...>, @name=:load_config_initializers, @block=#<Proc:0xb6ec0c00@/home/rubys/git/rails/railties/lib/rails/engine.rb:199>, @options={:after=>:add_view_paths}>, #<Rails::Initializable::Initializer:0xb6e1d474 @context=#<View::Application:0xb6e6d80c ...>, @name=:engines_blank_point, @block=#<Proc:0x00000000@/home/rubys/git/rails/railties/lib/rails/engine.rb:205>, @options={:after=>:load_config_initializers}>], @config=#<Rails::Application::Configuration:0xb6e5a004 @log_level=:debug, @middleware=[ActionDispatch::Static, Rack::Lock, ActiveSupport::Cache::Strategy::LocalCache, Rack::Runtime, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::RemoteIp, Rack::Sendfile, ActionDispatch::Callbacks, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ParamsParser, Rack::MethodOverride, ActionDispatch::Head, ActionDispatch::BestStandardsSupport], @autoload_once_paths=[], @cache_store=[:file_store, "/home/rubys/git/awdwr/work/view/tmp/cache/"], @serve_static_assets=true, @whiny_nils=true, @allow_concurrency=false, @session_options={:cookie_only=>true, :key=>"_view_session"}, @eager_load_paths=["/home/rubys/git/awdwr/work/view/app/helpers", "/home/rubys/git/awdwr/work/view/app/controllers", "/home/rubys/git/awdwr/work/view/app/mailers", "/home/rubys/git/awdwr/work/view/app/models"], @time_zone="UTC", @dependency_loading=true, @secret_token="fb0c79bca07e56c3eaae437844279f7e94b2c45a06b20e8387206958b277806fe3af8441776d5fa302eac9d268574a6c85e02085ac3eaa51ba18f99aa8bbdf14", @cache_classes=false, @paths=#<Rails::Paths::Root:0xb6e22190 @all_paths=[#<Rails::Paths::Path:0xb6e21f38 @eager_load=true, @glob="?, :load, :subdomains, :freeze, :session, :POST, :eql?, :xhr?, :formats, :server_software, :body_stream, :values_at, :require_library_or_gem, :params, :content_mime_type, :host, :duplicable?, :session=, :request_parameters, :fullpath, :public_methods, :query_string, :filtered_parameters, :method_symbol, :script_name, :gem, :suppress, :unloadable, :is_a?, :require, :subdomain, :raw_post, :parseable_data?, :script_name=, :if_modified_since, :try, :tap, :accept_charset, :type, :content_length, :accept, :port, :instance_variables, :remote_addr, :authorization, :__id__, :frozen?, :scheme, :media_type_params, :to_a, :respond_to?, :display, :negotiate_mime, :ssl?, :returning, :method, :body, :accept_encoding, :silence_warnings, :if_none_match, :class, :media_type, :raw_host_with_port, :cookies, :get?, :to_yaml, :instance_variable_get, :remote_host, :==, :form_data?, :content_charset, :__send__, :===, :to_json, :extend, :to_s, :delete?, :session_options, :path_parameters, :env, :from, :to_param, :accept_language, :with_warnings, :local?, :debugger, :referrer, :port_string, :session_options=, :clone, :path_parameters=, :post?, :domain, :=~, :instance_variable_set, :remote_ident, :host_with_port, :filtered_env, :require_or_load, :with_options, :server_port, :reset_session, :not_modified?, :inspect, :[], :protocol, :xml_http_request?, :class_eval, :enable_warnings, :cache_control, :to_query, :[]=, :bind, :breakpoint, :standard_port, :dup, :ip, :object_id, :controller, :action], @url_helpers=#<Module:0xb6f38c28>, @controller_namespaces=#<Set: {}>, @routes=[#<ActionDispatch::Routing::Route:0xb6a3215c @requirements={}, @set=#<ActionDispatch::Routing::RouteSet:0xb6dbeac8 ...>, @name=nil, @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb6a325d0 @glob_param=nil, @defaults={}, @controllers={}>, @defaults={}, @conditions={:path_info=>/\A\/(.+?)(?:\/([^\/.?]+)(?:\/([^\/.?]+)(?:\.([^\/.?]+))?)?)?\Z/}, @path="/:controller(/:action(/:id(.:format)))">, #<ActionDispatch::Routing::Route:0xb69ed764 @requirements={:action=>"properties", :controller=>"rails/info"}, @set=#<ActionDispatch::Routing::RouteSet:0xb6dbeac8 ...>, @name="rails_info_properties", @app=#<ActionDispatch::Routing::RouteSet::Dispatcher:0xb69ed584 @glob_param=nil, @defaults={:action=>"properties", :controller=>"rails/info"}, @controllers={}>, @defaults={:action=>"properties", :controller=>"rails/info"}, @conditions={:path_info=>/\A\/rails\/info\/properties(?:\.([^\/.?]+))?\Z/}, @path="/rails/info/properties(.:format)", @segment_keys=[:format]>], @default_url_options={}, @controller_constraints=nil, @request_class=ActionDispatch::Request, @resources_path_names={:new=>"new", :edit=>"edit"}>, @_all_autoload_paths=["/home/rubys/git/awdwr/work/view/app/helpers", "/home/rubys/git/awdwr/work/view/app/controllers", "/home/rubys/git/awdwr/work/view/app/mailers", "/home/rubys/git/awdwr/work/view/app/models"], @routes_reloader=#<ActiveSupport::FileUpdateChecker:0xb6b919f8 @last_update_at=Sun Sep 05 21:17:45 -0400 2010, @block=#<Proc:0xb6ed086c@/home/rubys/git/rails/railties/lib/rails/application.rb:120>, @paths=["/home/rubys/git/awdwr/work/view/config/routes.rb", "/home/rubys/git/rails/railties/lib/rails/info_routes.rb"]>>, @accept="text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5", @host="www.example.com", @_mock_session=nil, @controller=nil, @response=nil, @remote_addr="127.0.0.1">
 
?> 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"
=> {:action=>"index", :controller=>"blog"}
>> rs.recognize_path "/blog/show/123"
=> {:action=>"show", :id=>"123", :controller=>"blog"}
>> rs.recognize_path "/blog/2004"
=> {:action=>"show_date", :year=>"2004", :controller=>"blog"}
>> rs.recognize_path "/blog/2004/12"
=> {:action=>"show_date", :month=>"12", :year=>"2004", :controller=>"blog"}
>> rs.recognize_path "/blog/2004/12/25"
=> {:action=>"show_date", :month=>"12", :year=>"2004", :day=>"25", :controller=>"blog"}
>> rs.recognize_path "/blog/article/edit/123"
=> {:action=>"edit", :id=>"123", :controller=>"article"}
>> rs.recognize_path "/blog/article/show_stats"
=> {:action=>"show_stats", :controller=>"article"}
>> rs.recognize_path "/blog/wibble"
=> {:action=>"unknown_request", :anything=>["blog", "wibble"], :controller=>"blog"}
>> rs.recognize_path "/junk"
=> {:action=>"unknown_request", :anything=>["junk"], :controller=>"blog"}
 
>> last_request = rs.recognize_path "/blog/2006/07/28"
=> {:action=>"show_date", :month=>"07", :year=>"2006", :day=>"28", :controller=>"blog"}
>> 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