Last active
December 16, 2015 10:19
-
-
Save kevin-shu/5419260 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# In Helper | |
module MetaHelper | |
def meta_tag type | |
if type==1 | |
return "<meta name='keywords' content='HTML,CSS,XML,JavaScript'>" | |
elsif type==2 | |
return "<meta name='keywords' content='HTML,CSS,XML,JavaScript'>" | |
else | |
return "<meta name='keywords' content='HTML,CSS,XML,JavaScript'>" | |
end | |
end | |
end | |
# In View | |
<%= meta_tag 1 %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment