i’m using ActiveForm for some validations without a database. the
problem is, when i start my application, I get this error:
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:
indeed, if i do:
require ‘rubygems’ ; require ‘active_record’ ;
I get the below barf. Any ideas what to do?
NameError: undefined method
save' for classObject’
alias_method' from /usr//lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/validations.rb:216:inappend_features’
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’