require 'rubygems'
require_gem 'activerecord'


ActiveRecord::Base.establish_connection(
  :adapter  => "mysql",
  :host     => "localhost",
  :database => "railsdb",
  :username => "railsuser",
  :password => "railspw"                                        
)
