- Install rubygems
sudo apt-get install rubygems )
- install rvm: (this will also install ruby version 1.9.3)
curl -sSL https://get.rvm.io | bash -s stable --ruby=1.9.3
- install the redis ruby gem:
gem install redis
- make a copy of the downloaded script, and modify the classes to match your 'tables'. Make sure they inherit from the base 'Entity' class. You will need to fully de-normalize your tables with respect to foriegn keys.
fill in the 'properties' member in each class:
:moduleType is the 'column', just make sure you have '=> ""' in there as well to
set the initial value to blank.
@properties = { :moduleType => "", :latitude => "", :longitude => ""}