ActiveRecord outside rails

Hi,

I am making web application, not based on ROR, but using ActiveRecord
library.

ActiveRecord automatically manage created_on and created at columns. I
would like to add columns created_by and changed_by, to remember user,
who created or modified this record… So, what do you think is most
simple and cleanest way? I tryed to to extend ActiveRecord::Base, but I
am still bit confused from rails libraries :slight_smile:

Thank you

Darken

On 6/26/06, Darken [email protected] wrote:

Hi,

I am making web application, not based on ROR, but using ActiveRecord
library.

ActiveRecord automatically manage created_on and created at columns. I
would like to add columns created_by and changed_by, to remember user,
who created or modified this record… So, what do you think is most
simple and cleanest way? I tryed to to extend ActiveRecord::Base, but I
am still bit confused from rails libraries :slight_smile:

There are some good sites on this, and it’s pretty easy.
Here’s one:
http://beer-monkey.com/articles/2006/06/02/database-programming-in-ruby-with-activerecord

Also, check out Chad F.'s excellent book “Rails Recipes”. It’s
covered in there very throughly.

Michael