Return to Snippet

Revision: 9353
at August 29, 2009 17:43 by eugegim


Updated Code
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

Revision: 9352
at October 31, 2008 18:03 by eugegim


Initial Code
require "rubygems"
require "active_record"

ActiveRecord::Base.establish_connection(
  :adapter  => "mysql",
  :host     => "localhost",
  :username => "root",
  :database => "db_name"
)

class Account < ActiveRecord::Base
end

Initial URL

                                

Initial Description

                                

Initial Title
ActiveRecord Without Rails

Initial Tags
textmate

Initial Language
Other