Database
dbruby.txt
Associated article: Databases & Dynamic Ruby Classes
Tags: Database Web Development
Published source code accompanying the article by David J. Berube in which he uses Ruby's flexibility to execute Ruby code from an MySQL database.
Databases & Dynamic Ruby Classes
by David J. Berube
Listing One
require 'config.rb'
require 'mysql'
$db = connect_db()
class Test_Object
@@properties = ['property_one','property_two']
MYTABLE = 'test_objects'
attr_reader :object_id
def initialize(object_id)
@object_id=...


