This got my rails application to load. Then I tried to use ambition on
the console:
Loading development environment (Rails 2.1.0)
>> Message.select { |m| m.sender == 'jon' }
ArgumentError: wrong number of arguments (3 for 4)
from /Library/Ruby/Gems/1.8/gems/ParseTree-2.1.1/lib/parse_tree.rb:
149:in `parse_tree_for_meth'
from /Library/Ruby/Gems/1.8/gems/ParseTree-2.1.1/lib/parse_tree.rb:
149:in `parse_tree_for_method'
from /Library/Ruby/Gems/1.8/gems/ParseTree-2.1.1/lib/parse_tree.rb:
68:in `translate'
from /.../vendor/gems/ambition-0.5.4/lib/ambition/sexp_translator.rb:
11:in `translate'
from /.../vendor/gems/ambition-0.5.4/lib/ambition/processors/base.rb:
80:in `to_s'
from /.../vendor/gems/ambition-0.5.4/lib/ambition/context.rb:45:in
`<<'
from /.../vendor/gems/ambition-0.5.4/lib/ambition/api.rb:13:in
`select'
I cannot seem to get around this. ParseTree-2.1.1 is the only parse
tree I have installed and this is the one that the gem specifically
requires. I just cannot imagine what I am doing wrong on my end. Can
you please help me get this working?
Nathan
unread,
Jun 1, 2008, 7:47:44 AM6/1/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ambition.rb
Just to be as clear as possible, I git cloned today and the versions
for the gems are as follows:
ambition-0.5.4
ambitious-activerecord-0.1.3
If I check the gem dependencies using "rake gems", it shows them both
as properly frozen. I have tried the ambition command from the rails
application itself and from the console with the exact same result.