Hi - I wanted to try out the Blackbook gem: http://contentfree.rubyforge.org/blackbook/ So I did gem install blackbook and I kept getting failures installing, and finally I used the -- ignore-dependencies flag in gem install, and I got it installed. Now I try to do something very simple like contacts = Blackbook.get :username => ''myname-/E1597aS9LQAvxtiuMwx3w@public.gmane.org'', :password => ''password'' and I get NameError: uninitialized constant Blackbook at both the console and in the debugger. my question is, do I have to do something to use the newly installed gem? I''m new to gems and have only used them for examples and such. Thanks for any help, Dino --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Did you require the gem? On Sep 9, 3:37 pm, "dino d." <dinodorr...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> Hi - I wanted to try out the Blackbook gem: > > http://contentfree.rubyforge.org/blackbook/ > > So I did > > gem install blackbook > > and I kept getting failures installing, and finally I used the -- > ignore-dependencies flag in gem install, and I got it installed. Now I > try to do something very simple like > > contacts = Blackbook.get :username => ''myn...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org'', :password => > ''password'' > > and I get > > NameError: uninitialized constant Blackbook > > at both the console and in the debugger. my question is, do I have to > do something to use the newly installed gem? I''m new to gems and have > only used them for examples and such. > > Thanks for any help, > Dino--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I didn''t originally, but now I did. I added: require ''blackbook'' and now, I get no such file to load -- blackbook I''ve checked and blackbook.rb is installed here: C:\ruby\lib\ruby\gems\1.8\gems\blackbook-1.0.4\lib i don''t have any idea how ruby looks for gems or where. this error tells me it can''t find blackbook.rb. Any ideas? Thanks, Dino On Sep 9, 4:47 pm, John Yerhot <joyer...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Did you require the gem? > > On Sep 9, 3:37 pm, "dino d." <dinodorr...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: > > > Hi - I wanted to try out the Blackbook gem: > > >http://contentfree.rubyforge.org/blackbook/ > > > So I did > > > gem install blackbook > > > and I kept getting failures installing, and finally I used the -- > > ignore-dependencies flag in gem install, and I got it installed. Now I > > try to do something very simple like > > > contacts = Blackbook.get :username => ''myn...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org'', :password => > > ''password'' > > > and I get > > > NameError: uninitialized constant Blackbook > > > at both the console and in the debugger. my question is, do I have to > > do something to use the newly installed gem? I''m new to gems and have > > only used them for examples and such. > > > Thanks for any help, > > Dino--~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Is this is Rails 2.1? If so did you look at the comments pertaining to gems in config/environment.rb? Example: config.gem "hpricot", :version => ''0.6'', :source => "http://code.whytheluckystiff.net" dino d. wrote:> I didn''t originally, but now I did. I added: > > require ''blackbook'' > > and now, I get > > no such file to load -- blackbook > > I''ve checked and blackbook.rb is installed here: > > C:\ruby\lib\ruby\gems\1.8\gems\blackbook-1.0.4\lib > > i don''t have any idea how ruby looks for gems or where. this error > tells me it can''t find blackbook.rb. Any ideas? > > Thanks, > Dino-- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> If so did you look at the comments pertaining to gems in > config/environment.rb?Or optionally you may consider "vendoring" the gem. See: http://errtheblog.com/posts/50-vendor-everything Robert Walker wrote: -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
no, i''m running rails 2.0.2 thanks for your help so far. On Sep 9, 5:28 pm, Robert Walker <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Is this is Rails 2.1? > > If so did you look at the comments pertaining to gems in > config/environment.rb? > > Example: > config.gem "hpricot", :version => ''0.6'', :source => > "http://code.whytheluckystiff.net" > > > > dino d. wrote: > > I didn''t originally, but now I did. I added: > > > require ''blackbook'' > > > and now, I get > > > no such file to load -- blackbook > > > I''ve checked and blackbook.rb is installed here: > > > C:\ruby\lib\ruby\gems\1.8\gems\blackbook-1.0.4\lib > > > i don''t have any idea how ruby looks for gems or where. this error > > tells me it can''t find blackbook.rb. Any ideas? > > > Thanks, > > Dino > > -- > Posted viahttp://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
SOLVED! The problem was that since the installer failed, I had to install without dependencies. Apparently, I forgot to manually install fastercsv, but instead of throwing a message like ''no fastercsv,'' it said ''no such file to load.'' Thanks for your help guys. dino On Sep 9, 5:36 pm, "dino d." <dinodorr...-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> no, i''m running rails 2.0.2 > > thanks for your help so far. > > On Sep 9, 5:28 pm, Robert Walker <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > > Is this is Rails 2.1? > > > If so did you look at the comments pertaining to gems in > > config/environment.rb? > > > Example: > > config.gem "hpricot", :version => ''0.6'', :source => > > "http://code.whytheluckystiff.net" > > >dinod. wrote: > > > I didn''t originally, but now I did. I added: > > > > require ''blackbook'' > > > > and now, I get > > > > no such file to load -- blackbook > > > > I''ve checked and blackbook.rb is installed here: > > > > C:\ruby\lib\ruby\gems\1.8\gems\blackbook-1.0.4\lib > > > > i don''t have any idea how ruby looks for gems or where. this error > > > tells me it can''t find blackbook.rb. Any ideas? > > > > Thanks, > > >Dino > > > -- > > Posted viahttp://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---