ubuntu, ror, jQuery, css, website memo
太嫩, 沒啥心得, 用來紀錄每天學的
2010年6月22日 星期二
rails ip 辨識國家
how-to-know-user-location-with-rails
github geoip
Super fast IP to lat/lng in Rails
下載點 http://geolite.maxmind.com/download/geoip/database/
IP_COUNTRY = GeoIP.new("#{Rails.root}/public/GeoIP.dat")
IP_COUNTRY.country(request.remote_ip)
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言