/ Published in: Other
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
require 'rubygems' gem 'activerecord', '=2.1.2' require 'active_record' ActiveRecord::Base.establish_connection( :adapter => "mysql", :host => "localhost", :username => "root", :database => "db_name" ) class Account < ActiveRecord::Base end