From: Junkone Date: 2007-11-09T03:55:07+09:00 Subject: Re: invoke rails model from other ruby files On Nov 8, 1:27 pm, James Britt wrote: > Junkone wrote: > > how can i invoke rails model objects from other non rails ruby > > objects. do i have to do a require '' or is there a way i > > can refernce rails enviorument from ruby. > > Browse around for past messages on using ActiveRecord apart from the > rest of Rails. > > I've not done it, but it's doable. > > -- > James Britt > > "I can see them saying something like 'OMG Three Wizards Awesome'" > - billinboston, on reddit.com unfortunatly this is the error i get uninitialized constant ActiveRecord. any clues how to fix it. irb(main):010:0> require 'E:\TradingTools\torontotrader\app\models \rawdata.rb' NameError: uninitialized constant ActiveRecord from E:\TradingTools\torontotrader\app\models\rawdata.rb:1 from e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in `ge m_original_require' from e:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb: 27:in `re quire' from (irb):10