Displaying 1 result from an estimated 1 matches for "vpimitem".
Did you mean:
imitem
2006 Jul 06
0
Can''t generate AR from script (ActiveRecord::ConnectionNotEstablished)
Generating ActiveRecord instances from the console works fine.
./script/console
Loading development environment.
>> Pim.new()
=> #<Pim:0xb74427dc @attributes={"vpimitem"=>nil}, @new_record=true>
>>
But running this little script:
#!/usr/bin/env ruby
require File.dirname(__FILE__) + ''/../config/boot''
Pim.new()
Will spit out this:
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abs...