Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Move style to head to make routes page valid html5

  • Loading branch information...
commit 60e809cffd274d3e9f412a3cc845686ca8e7fb4f 1 parent 8202353
@carlosantoniodasilva carlosantoniodasilva authored
View
2  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>
View
8 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>
View
2  railties/lib/rails/templates/layouts/application.html.erb
@@ -24,6 +24,8 @@
a:hover { color: #fff; background-color:#000; }
h2 { padding-left: 10px; }
+
+ <%= yield :style %>
</style>
</head>
<body>
Please sign in to comment.
Something went wrong with that request. Please try again.