I used rails installer to install everything on my computer.I am trying to test if the database installed correctly with this code:
require 'rubygems'
require 'sqlite3'
puts "sqlite is working" if defined?( SQlite3::Database )
I am expecting it to print “sqlite is working” to the screen, but it is not doing anything.
Try:
that is a bit more useful.
Or, you could spell the module’s name correctly: