Problem with ActiveForm

Hi all,
i’m using ActiveForm for some validations without a database. the
problem is, when i start my application, I get this error:

undefined method save!' for classActiveForm’

but if i refresh my browser, the application starts normally. im
guessing it’s because the ActiveForm class uses some things from active
record that haven’t been require’d by rails yet?

if that is the case, is there any way i can get around this?
the line in question seems to be:

include ActiveRecord::Validations

indeed, if i do:
require ‘rubygems’ ; require ‘active_record’ ;
include ActiveRecord::Validations

I get the below barf. Any ideas what to do?
cheers.

NameError: undefined method save' for classObject’
from
/usr//lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:216:in
alias_method' from /usr//lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:216:inappend_features’
from
/usr//lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:215:in
class_eval' from /usr//lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:215:inappend_features’
from (irb):4:in `include’
from (irb):4

Try posting your question on refwell.com. You might get your answer
there
James