Please forgive the double posting, I just thought it would be better to
list this issue separately, with a more communicative subject (please
reply to this one).
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 @
…and it uses Ruby - cool, eh?
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
initialize': wrong number of arguments (4 for 0) (ArgumentError) from ./Desktop/gen_encpolygons.rb:11:innew’
from ./Desktop/gen_encpolygons.rb:11:in `generate_js_border_overlay’
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
Then I checked for the gem:
Any help is greatly appreciated.