I've just started learning Ruby (and Geo Ruby), and am trying to create overlays for Google Maps.
I found a [seemingly] great tutorial for doing this HERE
Have everything installed properly (as far as I can tell - gem list gives me the whole bundle including: mysql (2.8.1)).
MySQL working fine.
I get this error when trying to run the script (attached) from a shell:
$ ruby ./Desktop/gen_encpolygons.rb
./Desktop/gen_encpolygons.rb:11:in `initialize': wrong number of arguments (4 for 0) (ArgumentError) from ./Desktop/gen_encpolygons.rb:11:in `new' from ./Desktop/gen_encpolygons.rb:11:in `generate_js_border_overlay' from ./Desktop/gen_encpolygons.rb:95
I've googled extensively for similar argument errors, and I'm not finding any good matches (or solutions).
...so I opened an irb session to try a little test:
Mysql::new('localhost', 'root', '', 'my_database')
NameError: uninitialized constant Mysql from (irb):1
Then I checked for the gem:
>> require 'mysql'
Any help is greatly appreciated.
OS X 10.5.8
2.6 GHz Intel Core 2 Duo
MAMP v. 1.9.4