or thome think like this: ActiveRecord::Base.establish_connection
Ivan Nastyukhin
[email protected]






On Jun 16, 2010, at 1:20 AM, Marnen Laibow-Koser wrote:

> Greg Ma wrote:
>> Hi,
>> I make a cron jobs and I would like to use ActiveRecord. but I have this
>> error:
>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:326:in
>> `retrieve_connection': ActiveRecord::ConnectionNotEstablished
>> (ActiveRecord::ConnectionNotEstablished)
>> 
>> Do I have to require something else?
>> 
>> This is what I am already requiring:
>> require 'rubygems'
>> require 'hpricot'
>> require 'open-uri'
>> require 'ostruct'
>> require 'active_record'
>> 
>> Greg
> 
> I believe you should be using script/runner.
> 
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> [email protected]
> 
> 
> -- 
> Posted via http://www.ruby-forum.com/.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/rubyonrails-talk?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to