aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-21 17:27:24 -0800
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-11-21 17:27:24 -0800
commit47229208fccb7fbb284935738beb74ad102d29ee (patch)
tree62233522e43b2d065257135e221c35314d570a9f /railties/lib
parent8973a5af836a16fdb9f2509144d7637e14e9da82 (diff)
parentcf863f466e3af8a817790b414739303d663b1082 (diff)
downloadrails-47229208fccb7fbb284935738beb74ad102d29ee.tar.gz
rails-47229208fccb7fbb284935738beb74ad102d29ee.tar.bz2
rails-47229208fccb7fbb284935738beb74ad102d29ee.zip
Merge pull request #12994 from sbagdat/fix_for_info_title
Fix for titles of info pages
Diffstat (limited to 'railties/lib')
-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; }