diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index de6be79..3a541ca 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,2 +1,5 @@ module ApplicationHelper + def title(page_title) + content_for(:title) { page_title } + end end diff --git a/app/views/contacts/index.html.erb b/app/views/contacts/index.html.erb index c038244..5f57151 100644 --- a/app/views/contacts/index.html.erb +++ b/app/views/contacts/index.html.erb @@ -1,3 +1,4 @@ +<% title t("titles.contacts.index") %> <% @contacts.each do |c| %>