Ticket #27 (closed defect: worksforme)

Opened 2 years ago

Last modified 1 year ago

calling MyModel.roots fails with bleeding edge

Reported by: rails Assigned to: jcm
Priority: major Milestone:
Component: plugin Version: trunk
Keywords: Cc:

Description

I'm using the bleeding edge version of better nested set with rails 1.2.3

When I call Comment.roots (my model) I get the following error:

Comment.roots

ArgumentError?: Unknown key(s): order

from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_suppo

rt/core_ext/hash/keys.rb:48:in `assert_valid_keys'

from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_recor

d/base.rb:840:in `with_scope'

from ./script/../config/../config/../vendor/plugins/betternestedset/lib/

better_nested_set.rb:94:in `find_in_nested_set'

from ./script/../config/../config/../vendor/plugins/betternestedset/lib/

better_nested_set.rb:216:in `roots'

from (irb):1

The same thing was called out on the list:

http://rubyforge.org/pipermail/betternestedset-talk/2007-February/000127.html

Change History

08/14/07 22:16:32 changed by rails

  • status changed from new to closed.
  • resolution set to worksforme.

Hi,

I'm using Model.roots without problems (Rails 1.2.3, bns trunk rev 76). Please re-open this ticket if you can write a failing tests that shows the problem.

Krishna