Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Issues installing ambitious-activerecord
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
thoraxe  
View profile  
 More options May 14 2008, 8:54 pm
From: thoraxe <erikmjac...@gmail.com>
Date: Wed, 14 May 2008 17:54:21 -0700 (PDT)
Local: Wed, May 14 2008 8:54 pm
Subject: Issues installing ambitious-activerecord
OK... I seem to be a little confused here, but that's not new for me.
After trying to install ambition, I see that the version from gem
install is only 0.5.2.  ambitious-activerecord requires 0.5.3, so I
saw another post here that said someone simply cloned it directly into
their vendor/plugins folder.  Sounds good:

thoraxe@vmdora ~/railsapps/equine $ gem list
*** LOCAL GEMS ***
actionmailer (2.0.2)
actionpack (2.0.2)
activerecord (2.0.2)
activeresource (2.0.2)
activesupport (2.0.2)
ezcrypto (0.7)
fastercsv (1.2.3)
hoe (1.5.1)
mime-types (1.15)
mini_magick (1.2.3)
mislav-will_paginate (2.3.1)
mysql (2.7)
ParseTree (2.1.1, 2.0.1)
rails (2.0.2)
rake (0.8.1)
RedCloth (3.0.4)
rubigen (1.1.1)
ruby2ruby (1.1.8, 1.1.7)
rubyforge (0.4.5)
rubygems-update (1.0.1)
RubyInline (3.6.7)
scaffold_form_generator (1.1.0)
sources (0.0.1)

In vendor/plugins I've got ambition and ambitious_activerecord.  Let's
boot up some console:
thoraxe@vmdora ~/railsapps/equine $ script/console
Loading development environment (Rails 2.0.2)

>> require 'rubygems'
=> []
>> require 'ambition/adapters/active_record'
=> []
>> Barn.first

NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.const_get
        from /home/thoraxe/railsapps/equine/vendor/plugins/ambition/
lib/ambition/processors/base.rb:102:in `translator'
        from /home/thoraxe/railsapps/equine/vendor/plugins/ambition/
lib/ambition/processors/base.rb:94:in `translator'
        from /home/thoraxe/railsapps/equine/vendor/plugins/ambition/
lib/ambition/processors/slice.rb:11:in `to_s'
        from /home/thoraxe/railsapps/equine/vendor/plugins/ambition/
lib/ambition/context.rb:45:in `<<'
        from /home/thoraxe/railsapps/equine/vendor/plugins/ambition/
lib/ambition/api.rb:33:in `slice'
        from /home/thoraxe/railsapps/equine/vendor/plugins/ambition/
lib/ambition/api.rb:47:in `first'
        from (irb):3

Not looking so good for me.  Someone on #ambition on freenode
suggested trying to install the gem directly:
thoraxe@vmdora ~/railsapps/equine/vendor/plugins/ambition $ rake
install_gem
(in /home/thoraxe/railsapps/equine/vendor/plugins/ambition)
Not doing any of the Echoe gemmy stuff, because you don't have the
specified gem versions
rake aborted!
Don't know how to build task 'manifest'

(See full trace by running task with --trace)
(in /home/thoraxe/railsapps/equine/vendor/plugins/ambition)
Not doing any of the Echoe gemmy stuff, because you don't have the
specified gem versions

Also not so good =(

Any suggestions?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
thoraxe  
View profile  
 More options May 14 2008, 9:10 pm
From: thoraxe <erikmjac...@gmail.com>
Date: Wed, 14 May 2008 18:10:19 -0700 (PDT)
Local: Wed, May 14 2008 9:10 pm
Subject: Re: Issues installing ambitious-activerecord
Well, installing echoe allowed me to rake install_gem for both
ambition and ambitious-activerecord.  I'm still getting the same error
when actually trying to use ambitious-activerecord:

thoraxe@vmdora ~/railsapps/equine $ script/console
Loading development environment (Rails 2.0.2)

>> require 'rubygems'
=> []
>> require 'ambition/adapters/active_record'
=> []
>> Barn.first

NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.const_get
        from /usr/lib/ruby/gems/1.8/gems/ambition-0.5.4/lib/ambition/
processors/base.rb:102:in `translator'
        from /usr/lib/ruby/gems/1.8/gems/ambition-0.5.4/lib/ambition/
processors/base.rb:94:in `translator'
        from /usr/lib/ruby/gems/1.8/gems/ambition-0.5.4/lib/ambition/
processors/slice.rb:11:in `to_s'
        from /usr/lib/ruby/gems/1.8/gems/ambition-0.5.4/lib/ambition/
context.rb:45:in `<<'
        from /usr/lib/ruby/gems/1.8/gems/ambition-0.5.4/lib/ambition/
api.rb:33:in `slice'
        from /usr/lib/ruby/gems/1.8/gems/ambition-0.5.4/lib/ambition/
api.rb:47:in `first'
        from (irb):3

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
thoraxe  
View profile  
 More options May 14 2008, 9:36 pm
From: thoraxe <erikmjac...@gmail.com>
Date: Wed, 14 May 2008 18:36:38 -0700 (PDT)
Local: Wed, May 14 2008 9:36 pm
Subject: Re: Issues installing ambitious-activerecord
To add an interesting twist...

Barn < Contact.

>> Barn.first

NoMethodError: You have a nil object when you didn't expect it!
The error occurred while evaluating nil.const_get

>> Contact.first

=> #<Barn id: 18, type: "Barn", name:

So for some reason ambitious-activerecord does not like running on
inherited classes... which seems REALLY strange.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chris Wanstrath  
View profile  
 More options May 14 2008, 11:08 pm
From: "Chris Wanstrath" <ch...@ozmm.org>
Date: Wed, 14 May 2008 20:08:23 -0700
Local: Wed, May 14 2008 11:08 pm
Subject: Re: Issues installing ambitious-activerecord

On Wed, May 14, 2008 at 6:36 PM, thoraxe <erikmjac...@gmail.com> wrote:

> To add an interesting twist...

> Barn < Contact.
>>> Barn.first
> NoMethodError: You have a nil object when you didn't expect it!
> The error occurred while evaluating nil.const_get

>>> Contact.first
> => #<Barn id: 18, type: "Barn", name:

> So for some reason ambitious-activerecord does not like running on
> inherited classes... which seems REALLY strange.

This is a known issue, someone has brought it up before.  The AR
adapter doesn't seem to like STI.

- Chris


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
thoraxe  
View profile  
 More options May 15 2008, 8:13 am
From: thoraxe <erikmjac...@gmail.com>
Date: Thu, 15 May 2008 05:13:08 -0700 (PDT)
Local: Thurs, May 15 2008 8:13 am
Subject: Re: Issues installing ambitious-activerecord
Is there a fix planned for the future?  Anything I can do to help?

On May 14, 11:08 pm, "Chris Wanstrath" <ch...@ozmm.org> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »