Created
May 7, 2013 06:57
-
-
Save yuhonas/5530727 to your computer and use it in GitHub Desktop.
Bootstrap Rails dialable phone number view 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
def dialable_phone_number(number) | |
content_tag(:a, | |
number, | |
:class => 'visible-phone', | |
:href => "tel:#{number}" | |
) + content_tag(:span, number, :class => 'visible-desktop') | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment