aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/middleware/templates
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-05 11:57:13 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-05 12:01:16 -0200
commit60e809cffd274d3e9f412a3cc845686ca8e7fb4f (patch)
treed127c8fa62981ffe440b37531e9b0adefb24f1a4 /actionpack/lib/action_dispatch/middleware/templates
parent82023532d862d773c27cdd7f55b9acacab41dd37 (diff)
downloadrails-60e809cffd274d3e9f412a3cc845686ca8e7fb4f.tar.gz
rails-60e809cffd274d3e9f412a3cc845686ca8e7fb4f.tar.bz2
rails-60e809cffd274d3e9f412a3cc845686ca8e7fb4f.zip
Move style to head to make routes page valid html5
Diffstat (limited to 'actionpack/lib/action_dispatch/middleware/templates')
-rw-r--r--actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb2
-rw-r--r--actionpack/lib/action_dispatch/middleware/templates/routes/_route_wrapper.html.erb8
2 files changed, 6 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
index 1aeff6c1b9..9878c2747e 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/layout.erb
@@ -113,6 +113,8 @@
a { color: #980905; }
a:visited { color: #666; }
a:hover { color: #C52F24; }
+
+ <%= yield :style %>
</style>
<script>
diff --git a/actionpack/lib/action_dispatch/middleware/templates/routes/_route_wrapper.html.erb b/actionpack/lib/action_dispatch/middleware/templates/routes/_route_wrapper.html.erb
index dc17cb77ef..9026c4eeb2 100644
--- a/actionpack/lib/action_dispatch/middleware/templates/routes/_route_wrapper.html.erb
+++ b/actionpack/lib/action_dispatch/middleware/templates/routes/_route_wrapper.html.erb
@@ -1,7 +1,7 @@
-<style type='text/css'>
- #route_table td {padding: 0 30px;}
- #route_table {margin: 0 auto 0;}
-</style>
+<% content_for :style do %>
+ #route_table td { padding: 0 30px; }
+ #route_table { margin: 0 auto 0; }
+<% end %>
<table id='route_table' class='route_table'>
<thead>