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