Skip to content

Instantly share code, notes, and snippets.

@kevin-shu
Last active December 16, 2015 10:19
Show Gist options
  • Save kevin-shu/5419260 to your computer and use it in GitHub Desktop.
Save kevin-shu/5419260 to your computer and use it in GitHub Desktop.
# 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