georgedrummond_sinatra_helpers 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ module GeorgeDrummond
|
|
18
18
|
# mail_to("georgedrummond@gmail.com", "George Drummond")
|
19
19
|
# # => <a href="mailto:georgedrummond@gmail.com" class="mailto">George Drummond</a>
|
20
20
|
def mail_to(email, text=email)
|
21
|
-
"<a href=\"mailto
|
21
|
+
"<a href=\"mailto:#{email}\" class=\"mailto\">#{text}</a>"
|
22
22
|
end
|
23
23
|
|
24
24
|
# Creates the gravatar (www.gravatar.com) html from the email address and arguments provided.
|