From 012213467667a5d4f56761fbc235a3359d95750a Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Mon, 18 Feb 2013 20:37:53 -0800 Subject: Duck typing is hard. Add header to HtmlTableFormatter. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Somehow I missed this method, which was then throwing an error when viewing routes as HTML. Make @rubys happy: ✔ --- actionpack/lib/action_dispatch/routing/inspector.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_dispatch/routing/inspector.rb b/actionpack/lib/action_dispatch/routing/inspector.rb index 2870888771..f0f083823e 100644 --- a/actionpack/lib/action_dispatch/routing/inspector.rb +++ b/actionpack/lib/action_dispatch/routing/inspector.rb @@ -212,6 +212,10 @@ module ActionDispatch @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

You don't have any routes defined!

-- cgit v1.2.3