Commit d93aa626aeb9a75d88d85aaa9124ea5c5fd0984f

Authored by Pius Uzamere
1 parent 1fa52ab5

quick link to geocoded ip

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/click.rb
@@ -13,7 +13,7 @@ class Click < ActiveRecord::Base @@ -13,7 +13,7 @@ class Click < ActiveRecord::Base
13 13
14 def to_html 14 def to_html
15 if ip 15 if ip
16 - return what_was_clicked.gsub('ip', "http://api.hostip.info/get_html.php?ip=#{ip}") 16 + return what_was_clicked.gsub('ip', "<a href='http://api.hostip.info/get_html.php?ip=#{ip}'#{ip}</a>")
17 else 17 else
18 return what_was_clicked 18 return what_was_clicked
19 end 19 end