Last active
December 20, 2015 12:09
-
-
Save Nitrino/6128894 to your computer and use it in GitHub Desktop.
qr-code helper generator
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
def qr_code(size, url) | |
"https://chart.googleapis.com/chart?cht=qr&chs=#{size}x#{size}&chl=#{CGI.escape(url)}" | |
end |
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
= image_tag(qr_code 500, 'https://github.com/Nitrino') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment