aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSıtkı Bağdat <sbagdat@gmail.com>2013-11-22 03:02:57 +0200
committerSıtkı Bağdat <sbagdat@gmail.com>2013-11-22 03:02:57 +0200
commitcf863f466e3af8a817790b414739303d663b1082 (patch)
treee1a674a47996702c7651fa6d5bda5ffe7dd244f7
parent6701b4cf41f6f3d9cfc6a93715acbf852d1e468e (diff)
downloadrails-cf863f466e3af8a817790b414739303d663b1082.tar.gz
rails-cf863f466e3af8a817790b414739303d663b1082.tar.bz2
rails-cf863f466e3af8a817790b414739303d663b1082.zip
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.
-rw-r--r--railties/lib/rails/info_controller.rb2
-rw-r--r--railties/lib/rails/templates/layouts/application.html.erb2
2 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/rails/info_controller.rb b/railties/lib/rails/info_controller.rb
index fa5668a5b5..85ea11b4e7 100644
--- a/railties/lib/rails/info_controller.rb
+++ b/railties/lib/rails/info_controller.rb
@@ -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
diff --git a/railties/lib/rails/templates/layouts/application.html.erb b/railties/lib/rails/templates/layouts/application.html.erb
index 7352d48e7b..50a4755e45 100644
--- a/railties/lib/rails/templates/layouts/application.html.erb
+++ b/railties/lib/rails/templates/layouts/application.html.erb
@@ -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; }