aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates/routes/_route.html.erb
diff options
context:
space:
mode:
authorbrainopia <brainopia@evilmartians.com>2015-02-23 19:51:30 +0300
committerbrainopia <brainopia@evilmartians.com>2015-02-23 19:57:01 +0300
commit321db4aa2edf46b8cf54c99bf3b97b48b7099dcf (patch)
treec2a07a82692e7c5ed546c02e7340ccb429d62842 /actionpack/lib/action_dispatch/middleware/templates/routes/_route.html.erb
parente71f5dad4e0d27afbcc091173bee20bd6f4d2a4e (diff)
downloadrails-321db4aa2edf46b8cf54c99bf3b97b48b7099dcf.tar.gz
rails-321db4aa2edf46b8cf54c99bf3b97b48b7099dcf.tar.bz2
rails-321db4aa2edf46b8cf54c99bf3b97b48b7099dcf.zip
Change filter on /rails/info/routes to use an actual path regexp from rails
Change filter on /rails/info/routes to use an actual path regexp from rails and not approximate javascript version. Oniguruma supports much more extensive list of features than javascript regexp engine. Fixes #18402.
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/templates/routes/_route.html.erb')
-rw-r--r--actionpack/lib/action_dispatch/middleware/templates/routes/_route.html.erb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/routes/_route.html.erb b/actionpack/lib/action_dispatch/middleware/templates/routes/_route.html.erb
index 24e44f31ac..6e995c85c1 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/routes/_route.html.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/routes/_route.html.erb
@@ -4,13 +4,13 @@
<%= route[:name] %><span class='helper'>_path</span>
<% end %>
</td>
- <td data-route-verb='<%= route[:verb] %>'>
+ <td>
<%= route[:verb] %>
</td>
- <td data-route-path='<%= route[:path] %>' data-regexp='<%= route[:regexp] %>'>
+ <td data-route-path='<%= route[:path] %>'>
<%= route[:path] %>
</td>
- <td data-route-reqs='<%= route[:reqs] %>'>
- <%= route[:reqs] %>
+ <td>
+ <%=simple_format route[:reqs] %>
</td>
</tr>