Permalink
Browse files

Duck typing is hard. Add header to HtmlTableFormatter.

Somehow I missed this method, which was then throwing an error
when viewing routes as HTML.

Make @rubys happy: ✔
  • Loading branch information...
1 parent 40a1027 commit 012213467667a5d4f56761fbc235a3359d95750a @steveklabnik steveklabnik committed Feb 19, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 actionpack/lib/action_dispatch/routing/inspector.rb
@@ -212,6 +212,10 @@ def section(routes)
@buffer << @view.render(partial: "routes/route", collection: routes)
end
+ # the header is part of the HTML page, so we don't construct it here.
+ def header(routes)
+ end
+
def no_routes
@buffer << <<-MESSAGE.strip_heredoc
<p>You don't have any routes defined!</p>

0 comments on commit 0122134

Please sign in to comment.