input part
use part
##Methodology to examine routing system.
$ rails c
> app.main_app.routes
=> #<ActionDispatch::Routing::RouteSet:0x007fe88539eae8>
> app.main_app.routes.url_helpers.ancestors
=> [#<Module:0x007fe883dd2070>, #<Module:0x007fe88539e9a8>]
>
$ find . -type f | xargs grep add_route
./actionpack/lib/action_dispatch/journey/routes.rb: # added to the table by calling Routes#add_route.
./actionpack/lib/action_dispatch/journey/routes.rb: def add_route(app, path, conditions, defaults, name = nil)
./actionpack/lib/action_dispatch/routing/mapper.rb: add_route(path, options)
./actionpack/lib/action_dispatch/routing/mapper.rb: def add_route(action, options) # :nodoc:
./actionpack/lib/action_dispatch/routing/mapper.rb: @set.add_route(app, conditions, requirements, defaults, as, anchor)
./actionpack/lib/action_dispatch/routing/route_set.rb: def add_route(app, conditions = {}, requirements = {}, defaults = {}, name = nil, anchor = true)
./actionpack/lib/action_dispatch/routing/route_set.rb: route = @set.add_route(app, path, conditions, defaults, name)