instance method
draw_header
Ruby on Rails 7.2.3
Since v6.0.6 PrivateSignature
draw_header(routes)
No documentation comment.
Parameters
-
routesreq
Source
# File actionpack/lib/action_dispatch/routing/inspector.rb, line 215
def draw_header(routes)
name_width, verb_width, path_width = widths(routes)
"#{"Prefix".rjust(name_width)} #{"Verb".ljust(verb_width)} #{"URI Pattern".ljust(path_width)} Controller#Action"
end
Defined in actionpack/lib/action_dispatch/routing/inspector.rb line 215
· View on GitHub
· Improve this page
· Find usages on GitHub