Hi, Is it possible to use ActiveResource with Rails 1.2.x ? I''ve seen that you can download it as a source gem (gem install activeresource-source http://gems.rubyonrails.org) I''d love to hear from anybody who has tried this, or even better, somebody who has got this working. Martin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 5/31/07, linus1412 <linus141275-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> > Hi, > > Is it possible to use ActiveResource with Rails 1.2.x ? > > I''ve seen that you can download it as a source gem (gem install > activeresource-source http://gems.rubyonrails.org) > > I''d love to hear from anybody who has tried this, or even better, > somebody who has got this working.Probably not, I think there were some changes to ActiveSupport to uh.. support it. Upgrading to edge rails shouldn''t be too difficult from Rails 1.2.3 though... -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.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 -~----------~----~----~----~------~----~------~--~---
Just the man... Thanks for the quick response Rick. When I did the gem install for ARes it updated ASup (have I just made this one up?) to the dependent version. I then had to make ARes active, but hit errors as Rails then wants to find the rest of Rails in vendor/rails. The reason I say ''Just the man'' is because I''m trying to call an instance of your lovely Beast from my existing app, to dynamically create forums, topics and posts. I guess I''ll just have to hand cruft the REST calls to Beast for now then. Shame. Thanks, Martin On May 31, 4:02 pm, "Rick Olson" <technowee...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 5/31/07, linus1412 <linus141...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > Hi, > > > Is it possible to use ActiveResource with Rails 1.2.x ? > > > I''ve seen that you can download it as a source gem (gem install > > activeresource-sourcehttp://gems.rubyonrails.org) > > > I''d love to hear from anybody who has tried this, or even better, > > somebody who has got this working. > > Probably not, I think there were some changes to ActiveSupport to uh.. > support it. Upgrading to edge rails shouldn''t be too difficult from > Rails 1.2.3 though... > > -- > Rick Olsonhttp://lighthouseapp.comhttp://weblog.techno-weenie.nethttp://mephistoblog.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 -~----------~----~----~----~------~----~------~--~---
Sorry - should have pointed out that Edge is out of the question, as my app is already in production. On May 31, 4:13 pm, linus1412 <linus141...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> Just the man... > > Thanks for the quick response Rick. When I did the gem install for > ARes it updated ASup (have I just made this one up?) to the dependent > version. I then had to make ARes active, but hit errors as Rails then > wants to find the rest of Rails in vendor/rails. > > The reason I say ''Just the man'' is because I''m trying to call an > instance of your lovely Beast from my existing app, to dynamically > create forums, topics and posts. > > I guess I''ll just have to hand cruft the REST calls to Beast for now > then. > > Shame. > > Thanks, > > Martin > > On May 31, 4:02 pm, "Rick Olson" <technowee...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > On 5/31/07, linus1412 <linus141...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > Hi, > > > > Is it possible to use ActiveResource with Rails 1.2.x ? > > > > I''ve seen that you can download it as a source gem (gem install > > > activeresource-sourcehttp://gems.rubyonrails.org) > > > > I''d love to hear from anybody who has tried this, or even better, > > > somebody who has got this working. > > > Probably not, I think there were some changes to ActiveSupport to uh.. > > support it. Upgrading to edge rails shouldn''t be too difficult from > > Rails 1.2.3 though... > > > -- > > Rick Olsonhttp://lighthouseapp.comhttp://weblog.techno-weenie.nethttp://mephist...--~--~---------~--~----~------------~-------~--~----~ 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 Edge is out of the question, then it''s not too difficult of a process. What I did was put activeresource under vendor, then in my environment.rb: config.load_paths += %w( #{RAILS_ROOT}/vendor/activeresource/lib ) and let Rails do the rest. Jason On 5/31/07, linus1412 <linus141275-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> > > Sorry - should have pointed out that Edge is out of the question, as > my app is already in production. > > On May 31, 4:13 pm, linus1412 <linus141...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > Just the man... > > > > Thanks for the quick response Rick. When I did the gem install for > > ARes it updated ASup (have I just made this one up?) to the dependent > > version. I then had to make ARes active, but hit errors as Rails then > > wants to find the rest of Rails in vendor/rails. > > > > The reason I say ''Just the man'' is because I''m trying to call an > > instance of your lovely Beast from my existing app, to dynamically > > create forums, topics and posts. > > > > I guess I''ll just have to hand cruft the REST calls to Beast for now > > then. > > > > Shame. > > > > Thanks, > > > > Martin > > > > On May 31, 4:02 pm, "Rick Olson" <technowee...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > On 5/31/07, linus1412 <linus141...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > > Hi, > > > > > > Is it possible to use ActiveResource with Rails 1.2.x ? > > > > > > I''ve seen that you can download it as a source gem (gem install > > > > activeresource-sourcehttp://gems.rubyonrails.org) > > > > > > I''d love to hear from anybody who has tried this, or even better, > > > > somebody who has got this working. > > > > > Probably not, I think there were some changes to ActiveSupport to uh.. > > > support it. Upgrading to edge rails shouldn''t be too difficult from > > > Rails 1.2.3 though... > > > > > -- > > > Rick Olsonhttp://lighthouseapp.comhttp://weblog.techno-weenie > .nethttp://mephist... > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 5/31/07, linus1412 <linus141275-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> > Sorry - should have pointed out that Edge is out of the question, as > my app is already in production. >My apps are on edge too :o It works out if you have good tests and you don''t blindly bump the edge version. -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.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 -~----------~----~----~----~------~----~------~--~---
Hi Jason, I tried what you suggested, but when I try to create one of my ARes objects in the console I get: f = Forum.new NameError: uninitialized constant ActiveResource from ./script/../config/../config/../vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:266:in `load_missing_constant'' from ./script/../config/../config/../vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:452:in `const_missing'' from ./script/../config/../config/../vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:464:in `const_missing'' from ./script/../config/../config/../app/models/forum.rb:9 from ./script/../config/../config/../vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_without_new_constant_marking'' from ./script/../config/../config/../vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:203:in `load_file'' from ./script/../config/../config/../vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'' from ./script/../config/../config/../vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:202:in `load_file'' from ./script/../config/../config/../vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:94:in `require_or_load'' from ./script/../config/../config/../vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:248:in `load_missing_constant'' from ./script/../config/../config/../vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:452:in `const_missing'' from ./script/../config/../config/../vendor/rails/activerecord/ lib/../../activesupport/lib/active_support/dependencies.rb:464:in `const_missing'' from (irb):2 Any idea? Martin On May 31, 4:27 pm, "Jason Roelofs" <jameskil...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> If Edge is out of the question, then it''s not too difficult of a process. > What I did was put activeresource under vendor, then in my environment.rb: > > config.load_paths += %w( #{RAILS_ROOT}/vendor/activeresource/lib ) > > and let Rails do the rest. > > Jason > > On 5/31/07, linus1412 <linus141...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > Sorry - should have pointed out that Edge is out of the question, as > > my app is already in production. > > > On May 31, 4:13 pm, linus1412 <linus141...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > Just the man... > > > > Thanks for the quick response Rick. When I did the gem install for > > > ARes it updated ASup (have I just made this one up?) to the dependent > > > version. I then had to make ARes active, but hit errors as Rails then > > > wants to find the rest of Rails in vendor/rails. > > > > The reason I say ''Just the man'' is because I''m trying to call an > > > instance of your lovely Beast from my existing app, to dynamically > > > create forums, topics and posts. > > > > I guess I''ll just have to hand cruft the REST calls to Beast for now > > > then. > > > > Shame. > > > > Thanks, > > > > Martin > > > > On May 31, 4:02 pm, "Rick Olson" <technowee...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > On 5/31/07, linus1412 <linus141...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > > Hi, > > > > > > Is it possible to use ActiveResource with Rails 1.2.x ? > > > > > > I''ve seen that you can download it as a source gem (gem install > > > > > activeresource-sourcehttp://gems.rubyonrails.org) > > > > > > I''d love to hear from anybody who has tried this, or even better, > > > > > somebody who has got this working. > > > > > Probably not, I think there were some changes to ActiveSupport to uh.. > > > > support it. Upgrading to edge rails shouldn''t be too difficult from > > > > Rails 1.2.3 though... > > > > > -- > > > > Rick Olsonhttp://lighthouseapp.comhttp://weblog.techno-weenie > > .nethttp://mephist...--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On 5/31/07, linus1412 <linus141275-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote:> > Hi Jason, > > I tried what you suggested, but when I try to create one of my ARes > objects in the console I get: > > f = Forum.new > NameError: uninitialized constant ActiveResourceYou need to require ''active_resource'' -- Rick Olson http://lighthouseapp.com http://weblog.techno-weenie.net http://mephistoblog.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 -~----------~----~----~----~------~----~------~--~---
Yeah! Thanks for your help guys! Martin Smith http://squadfootball.com On May 31, 5:14 pm, "Rick Olson" <technowee...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On 5/31/07, linus1412 <linus141...-PkbjNfxxIARBDgjK7y7TUQ@public.gmane.org> wrote: > > > > > Hi Jason, > > > I tried what you suggested, but when I try to create one of my ARes > > objects in the console I get: > > > f = Forum.new > > NameError: uninitialized constant ActiveResource > > You need to require ''active_resource'' > > -- > Rick Olsonhttp://lighthouseapp.comhttp://weblog.techno-weenie.nethttp://mephistoblog.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 -~----------~----~----~----~------~----~------~--~---