aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/templates
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2012-12-14 15:44:57 -0500
committerSteve Klabnik <steve@steveklabnik.com>2012-12-14 15:44:57 -0500
commit8554537e48d6ed18ef08cb3ac0a9da96ac3c5cd6 (patch)
treea61ff797f8d55152bf7cf9f397c7ad940bc4e9fa /railties/lib/rails/templates
parentfa3457dc3b30e3dde5bc4b041f59c037c76e1f8b (diff)
downloadrails-8554537e48d6ed18ef08cb3ac0a9da96ac3c5cd6.tar.gz
rails-8554537e48d6ed18ef08cb3ac0a9da96ac3c5cd6.tar.bz2
rails-8554537e48d6ed18ef08cb3ac0a9da96ac3c5cd6.zip
Revert "Merge pull request #8499 from schneems/schneems/html-route-inspector"
This reverts commit ae68fc3864e99ab43c18fd12577744e1583f6b64, reversing changes made to 0262a18c7b0ab6f60fee842b3007388f9ffeb0fa. See here: https://github.com/rails/rails/pull/8499#issuecomment-11356417
Diffstat (limited to 'railties/lib/rails/templates')
-rw-r--r--railties/lib/rails/templates/rails/info/routes.html.erb27
1 files changed, 1 insertions, 26 deletions
diff --git a/railties/lib/rails/templates/rails/info/routes.html.erb b/railties/lib/rails/templates/rails/info/routes.html.erb
index 8a7e4d37a0..890f6f5b03 100644
--- a/railties/lib/rails/templates/rails/info/routes.html.erb
+++ b/railties/lib/rails/templates/rails/info/routes.html.erb
@@ -1,7 +1,3 @@
-<style>
-.route-row td {padding: 0 30px;}
-.routeTable {margin: 0 auto 0;}
-</style>
<h2>
Routes
</h2>
@@ -10,25 +6,4 @@
Routes match in priority from top to bottom
</p>
-<table id='routeTable' class='routeTable'>
- <th>Helper<br />
- <%= link_to "Path", "#", 'data-route-helper' => 'path',
- title: "Returns a relative path (without the http or domain)" %> /
- <%= link_to "Url", "#", 'data-route-helper' => 'url',
- title: "Returns an absolute url (with the http and domain)" %>
- </th>
- <th>HTTP Verb</th>
- <th>Path</th>
- <th>Controller#Action</th>
- <%= @info.html_safe %>
-</table>
-
-<script type='text/javascript'>
- $(document).ready(function (){
- $("#routeTable [data-route-helper]").on('click', function(){
- routeHelper = $(this).data("route-helper");
- $('.route-name span.helper').html("_" + routeHelper);
- return false;
- })
- })
-</script> \ No newline at end of file
+<p><pre><%= @info %></pre></p> \ No newline at end of file