dictionary - integrating GEOIP checker in ruby on rails project -


i building application registration. however, there requirement needs check location of person initiates registration. have downloaded csv database maxmind lite geoip database. need check 1 particular country's ip address.

i have extracted geoname_id, country_id , network address, current idea store these location in class dictionary, each time before user register can load dictionary , check geo ip.

however, have no idea how store or create dictionary , load it. can provide simple guide how should proceed? or there simple example.

thanks.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -