From 90ebcdf06b2698e459497119073b2774247a80bf Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 8 Oct 2015 21:52:03 -0400 Subject: [PATCH] Clean up title --- app/helpers/application_helper.rb | 2 +- app/views/layouts/application.html.slim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index cb731df..874b166 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -21,7 +21,7 @@ module ApplicationHelper end def page_title - "#{controller_name.capitalize}: #{action_name.capitalize}" + controller_name.to_s.humanize.titleize end private diff --git a/app/views/layouts/application.html.slim b/app/views/layouts/application.html.slim index 79866e6..e41547b 100644 --- a/app/views/layouts/application.html.slim +++ b/app/views/layouts/application.html.slim @@ -4,7 +4,7 @@ html meta charset="utf-8" meta http-equiv="X-UA-Compatible" content="IE=edge" meta name="viewport" content="width=device-width, initial-scale=1" - title DBZDokkan + title= "DBZDokkan - #{page_title}" = stylesheet_link_tag 'application', media: 'all' = javascript_include_tag 'application' = csrf_meta_tags