Created
December 12, 2012 15:18
-
-
Save RyanMacG/4268608 to your computer and use it in GitHub Desktop.
Full_title Helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Returns full title on a per-page basis | |
def full_title(page_title) | |
base_title = "JTCscDB" | |
if page_title.empty? | |
base_title | |
else | |
"#{base_title} | #{page_title}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment