J
jmilunsky
I get the following error message
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:251:in
`report_activate_error': Could not find RubyGem activerecord (>=
0.0.0) (Gem::LoadError)
from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:188:in
`activate'
from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:66:in
`active_gem_with_options'
from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:59:in
`require_gem'
from C:/RadRails/workspace/album/my_ruby_code.rb:1
When I try execute the following piece of code
require_gem "activerecord"
class Photo < ActiveRecord::Base
end
Photo.establish_connection(
:adapter => "mysql", :database => "album_development")
for column in Photo.columns
print column.name, "\t"
end
puts
puts
for photo in Photo.findall)
for column in Photo.columns
print photo.send(column.name), "\t"
end
puts
end
I suspect it's a class path problem or a bug in the version I am using
which is the 1.8.4 stable version
If anyone can help, i'd really appreciate it.
Thanks
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:251:in
`report_activate_error': Could not find RubyGem activerecord (>=
0.0.0) (Gem::LoadError)
from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:188:in
`activate'
from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:66:in
`active_gem_with_options'
from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:59:in
`require_gem'
from C:/RadRails/workspace/album/my_ruby_code.rb:1
When I try execute the following piece of code
require_gem "activerecord"
class Photo < ActiveRecord::Base
end
Photo.establish_connection(
:adapter => "mysql", :database => "album_development")
for column in Photo.columns
print column.name, "\t"
end
puts
puts
for photo in Photo.findall)
for column in Photo.columns
print photo.send(column.name), "\t"
end
puts
end
I suspect it's a class path problem or a bug in the version I am using
which is the 1.8.4 stable version
If anyone can help, i'd really appreciate it.
Thanks