1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix for titles of info pages

Both `rails/info/properties` and `rails/info/routes` have same html
title attribute as *Routes*. This commit includes a fix for the titles.
This commit is contained in:
Sıtkı Bağdat 2013-11-22 03:02:57 +02:00
parent 6701b4cf41
commit cf863f466e
2 changed files with 3 additions and 1 deletions

View file

@ -13,10 +13,12 @@ class Rails::InfoController < ActionController::Base # :nodoc:
def properties
@info = Rails::Info.to_html
@page_title = 'Properties'
end
def routes
@routes_inspector = ActionDispatch::Routing::RoutesInspector.new(_routes.routes)
@page_title = 'Routes'
end
protected

View file

@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Routes</title>
<title><%= @page_title %></title>
<style>
body { background-color: #fff; color: #333; }