...just doesn''t seem to work. I''m playing around with Ruby, and I''d like to use ActiveRecord but without Rails for the time being. So in my script I have: require ''rmail'' require ''active_record'' ...but I get the following error: ./test.rb:5:in ''require'': No such file to load -- active_record (LoadError) I''m on Gentoo, and I have Rails installed using Portage, but it''s installed correctly under /usr/lib/ruby/gems/1.8/gems/rails-0.12.1. RubyMail loads fine. I''m sure I''m doing something stupid... Thanks for any help! Colin
On 5/23/05, Colin Fleming <colin.mailinglist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> ...just doesn''t seem to work. I''m playing around with Ruby, and I''d > like to use ActiveRecord but without Rails for the time being. So in > my script I have: > > require ''rmail'' > require ''active_record'' > > ...but I get the following error: > > ./test.rb:5:in ''require'': No such file to load -- active_record (LoadError) > > I''m on Gentoo, and I have Rails installed using Portage, but it''s > installed correctly under /usr/lib/ruby/gems/1.8/gems/rails-0.12.1. > RubyMail loads fine. > > I''m sure I''m doing something stupid...Have you required ''rubygems'' first?> Thanks for any help! > Colin > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Cheers Koz
That did the trick, thanks! Why is this not necessary for rmail, which I also have installed as a gem? Thanks, Colin On 5/23/05, Michael Koziarski <koziarski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 5/23/05, Colin Fleming <colin.mailinglist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > ...just doesn''t seem to work. I''m playing around with Ruby, and I''d > > like to use ActiveRecord but without Rails for the time being. So in > > my script I have: > > > > require ''rmail'' > > require ''active_record'' > > > > ...but I get the following error: > > > > ./test.rb:5:in ''require'': No such file to load -- active_record (LoadError) > > > > I''m on Gentoo, and I have Rails installed using Portage, but it''s > > installed correctly under /usr/lib/ruby/gems/1.8/gems/rails-0.12.1. > > RubyMail loads fine. > > > > I''m sure I''m doing something stupid... > > Have you required ''rubygems'' first? > > > > Thanks for any help! > > Colin > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > -- > Cheers > > Koz >
On 5/23/05, Colin Fleming <colin.mailinglist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> That did the trick, thanks! Why is this not necessary for rmail, which > I also have installed as a gem?Don''t know sorry, perhaps you also have it installed ''the old way''?> Thanks, > Colin > > On 5/23/05, Michael Koziarski <koziarski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On 5/23/05, Colin Fleming <colin.mailinglist-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > ...just doesn''t seem to work. I''m playing around with Ruby, and I''d > > > like to use ActiveRecord but without Rails for the time being. So in > > > my script I have: > > > > > > require ''rmail'' > > > require ''active_record'' > > > > > > ...but I get the following error: > > > > > > ./test.rb:5:in ''require'': No such file to load -- active_record (LoadError) > > > > > > I''m on Gentoo, and I have Rails installed using Portage, but it''s > > > installed correctly under /usr/lib/ruby/gems/1.8/gems/rails-0.12.1. > > > RubyMail loads fine. > > > > > > I''m sure I''m doing something stupid... > > > > Have you required ''rubygems'' first? > > > > > > > Thanks for any help! > > > Colin > > > _______________________________________________ > > > Rails mailing list > > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > -- > > Cheers > > > > Koz > > >-- Cheers Koz