Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##NameError: uninitialized constant ActiveRecord # At line 4
- require 'rubygems'
- gem 'activerecord'
- ActiveRecord::Base.establish_connection(
- :adapter => "mysql",
- :host => "localhost",
- :username => "root",
- :password => "",
- :database => "test1"
- )
- class User < ActiveRecord::Base; end
- users = User.find(:all)
Add Comment
Please, Sign In to add comment