From: Brian Candler Date: 2011-03-14T22:16:20+09:00 Subject: Re: Any ideas? Micah Wolfe wrote in post #987225: >> What happens if you run the snippet below as a standalone script? >> >> # start snippet >> require 'rubygems' >> require 'mysql' >> >> puts "checking -- #{Mysql.class.name}" >> borderDB = Mysql::new('localhost', 'root', '', 'test') >> puts "checking -- #{borderDB.class.name}" >> # end snippet > > > Hi Hassan, > > Thanks for the reply. > > I get this: > checking -- Class > ./Desktop/test.rb:5:in `initialize': wrong number of arguments (4 for 0) > (ArgumentError) > from ./Desktop/test.rb:5:in `new' > from ./Desktop/test.rb:5 > > I don't think this is a script problem, but everything seems to check > out with the MySQL, and the other gems. You don't happen to have a file called "mysql.rb" in your working directory do you? I made that mistake before - for example, writing a test program for sinatra and deciding to call it 'sinatra.rb' :-) -- Posted via http://www.ruby-forum.com/.