generate dynamic titles temporarily
This commit is contained in:
parent
be4344823a
commit
3e3ce86d16
2 changed files with 5 additions and 0 deletions
|
@ -20,6 +20,10 @@ module ApplicationHelper
|
|||
"/auth/#{provider.to_s}"
|
||||
end
|
||||
|
||||
def page_title
|
||||
"#{controller_name.capitalize}: #{action_name.capitalize}"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def bootstrap_classes
|
||||
|
|
|
@ -14,4 +14,5 @@ html
|
|||
.container
|
||||
== render 'flash_messages', flash: flash
|
||||
.container
|
||||
h1= page_title
|
||||
= yield
|
||||
|
|
Loading…
Reference in a new issue