Regarding why this is not displayed in rake routes, first pay attention to how the task is performed. It is part of the railties , and it gets routes to show like for example :
Rails.application.routes.routes
So, we see what he asks Rails.applicationfor his routes.
, Omniauth gem - , Rack.
Rack, Rails.application, rake routes, .
Rack Railcast.
, rake middleware, OmniAuth::Builder rails . , auth/twitter?
, request_path call, , , request_path (path_prefix auth , name - twitter.
Omniauth Devise, path_prefix , .