Skip to content

Instantly share code, notes, and snippets.

@rudolph9
Last active December 15, 2015 06:39
Show Gist options
  • Save rudolph9/5218133 to your computer and use it in GitHub Desktop.
Save rudolph9/5218133 to your computer and use it in GitHub Desktop.
def link_to(text, address)
"<a href='#{ address }'>#{ text }</a>"
end
def content_tag tag, &block
"<#{ tag.to_s }>#{ block.call }</#{ tag.to_s}>"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment