Displaying 16 results from an estimated 16 matches for "better_nested_set".
2006 Aug 06
2
better_nested_set plugin
Hi,
I''m pleased to announce that the better_nested_set plugin is released.
It ehances acts_as_nested_set, adding methods to move parts of the
tree, like:
* move_to_child_of
* move_to_right_of
* move_to_left_of
Pass them an id or an object.
Other methods added by this mixin are:
* root - root item of the tree (the one that has a ni...
2009 Oct 14
0
[PATCH server] hack betternested set to enable pool deletion
...2.3.2/lib/active_record/locking/optimistic.rb
line 100
Note this patch only works since we explicitly disable a hw pool from being deleted
unless all its children are in the oVirt hardware_pool_server. It is ugly but works until
something more elegant can be found.
---
.../betternestedset/lib/better_nested_set.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/vendor/plugins/betternestedset/lib/better_nested_set.rb b/src/vendor/plugins/betternestedset/lib/better_nested_set.rb
index 9efbf25..ea8aea3 100644
--- a/src/vendor/plugins/betternestedset/lib/better_nested_set.r...
2009 Feb 17
8
Converting Acts_As_Tree to Acts_As_Nested_Set
Hello,
I have a tree structure that needs to be converted into a nested set.
A great deal of work has already been done on the tree items, so
maintaining the integrity of the id''s is mandatory. However I need
the ability to access entire branches of the tree, which is what
Nested set does. Does anyone have any suggestions on how to
efficiently transfer the tree to the nested set and
2010 May 12
3
Best Gem For Threaded Comment Storage?
...comments in a blog or forum,
Then which plugin/gem should be considered "State of the Art"?
I''m starting with these URLs:
http://github.com/rails/acts_as_tree
http://github.com/rails/acts_as_nested_set
http://github.com/collectiveidea/awesome_nested_set
http://github.com/chris/better_nested_set
http://github.com/elight/acts_as_commentable_with_threading
I''m looking for opinionated people with opinions about my question.
--
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 rubyon...
2007 Apr 29
1
better nested set and :through
Hello all,
It''s been a while since i''ve been doing any rails development, so i''m a
bit rusty. Having found this:
http://opensource.symetrie.com/api/better_nested_set/
it looks really interesting and useful for solving something i''m trying
to get working.
What i have (essentially) is the following models:
class Group < ActiveRecord::Base
acts_as_nested_set
has_many :memberships
has_many :users, :through => :memberships...
2008 Apr 16
8
Will acts_as_taggable_on_steroids and better_nested_set work together?
...ndor/plugins/acts_as_taggable_on_steroids/lib/acts_as_taggable.rb:220:in
`reload_without_tag_list''
/Users/alan/Projects/superb/vendor/plugins/acts_as_taggable_on_steroids/lib/acts_as_taggable.rb:220:in
`reload''
/Users/alan/Projects/superb/vendor/plugins/betternestedset/lib/better_nested_set.rb:161:in
`before_destroy''
/Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/callbacks.rb:322:in
`send''
/Library/Ruby/Gems/1.8/gems/activerecord-2.0.2/lib/active_record/callbacks.rb:322:in
`callback''
/Library/Ruby/Gems/1.8/gems/activerecord-2.0....
2007 May 02
3
acts_as_tree related question
hi,
I''ve a normal Category model implemented with acts_as_tree (name,
parent_id) that has_many :products (name, category_id).
What I''m asking for is a method to fetch every product that belongs
fall into a particular category and its children, eg: if I''m asking
for a root node (/category/show/1) I need to display every product
that have category_id = 1 AND every product
2009 Feb 20
1
better nested set and parent_id
Hello everybody
I have a model with better_nested_set. In my "new" form, i pass the
desired parent_id as a hidden field, and in the create action at the
controller i save the new register and use move_to_child_of Model
(params[item][parent_id])
Everything works, but at my log file it warns that i can''t mass asign
the property "...
2006 Dec 25
2
Active Record acts_as_tree and leaf depth
Using acts_as_tree, is it possible to get information of the depth a
tree leaf in relation to the root? Or is available to derive
information to save in the way "position" can be derived and saved for
acts_as_list.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2009 Nov 26
2
[error] avahi_entry_group_add_service_strlst("AdminNodeFQDN") failed: Invalid host name
...gems/activerecord-2.3.2/lib/active_record/base.rb:1276:in
`columns_without_gettext_activerecord'
from
/usr/lib/ruby/gems/1.8/gems/gettext_activerecord-2.0.4/lib/gettext_activerecord/base.rb:62:in
`columns'
from
/usr/share/ovirt-server/vendor/plugins/betternestedset/lib/better_nested_set.rb:35:in
`acts_as_nested_set'
from /usr/share/ovirt-server/app/models/pool.rb:21
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
... 25 levels...
from /usr/share/ovirt-server/dutils/dutils.rb:19:in `require'...
2006 Aug 28
1
strange 10 limit
..._results limit of 10, whatever value I pass to max_results,
even if I drop this option in my class.
Same limit using script/console
Myclass.find_by_contents(query)
Ideas ?
Using aaf 9.5.
Jean-Christophe Michel
--
symetrie.com
Better Nested Set for rails:
http://opensource.symetrie.com/trac/better_nested_set
2006 Aug 29
1
float/decimal with dot or comma
...I had to move to 1.1.6, isn''t it ? ;-)
Here in dev, same version, same code (svn revision), it doesn''t happen.
Ideas ?
Dev box: mac os x.3.9, Prod box : debian sarge i686.
Jean-Christophe Michel
--
symetrie.com
Better Nested Set for rails:
http://opensource.symetrie.com/trac/better_nested_set
--~--~---------~--~----~------------~-------~--~----~
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...
2007 Jan 13
0
better nested set 0.1
...eRecord''s internal
acts_as_nested_set.
Install it with:
script/plugin install
svn://rubyforge.org/var/svn/betternestedset/tags/stable/betternestedset
Join the mailing list:
http://rubyforge.org/mailman/listinfo/betternestedset-talk
Report bugs:
http://opensource.symetrie.com/trac/better_nested_set/
A nested set is a smart way to implement an ordered tree that allows
for fast, non-recursive queries. For example, you can fetch all
descendants of a node in a single query, no matter how deep the tree.
The drawback is that insertions/moves/deletes require complex SQL, but
that is handled behind...
2009 Jun 17
2
validates_uniqueness_of fails on STI in Rails 2.3.2
I''ve got something like this:
class Position < ActiveRecord::Base
end
class CartItem < Position
validates_uniqueness_of :product_id
end
When I try to save CartItem I get this error:
ArgumentError: wrong number of arguments (1 for 2)
from
/home/joaz/.gem/ruby/1.8/gems/activerecord-2.3.2/lib/active_record/validations.rb:758:in
`exists?''
from
2006 Sep 03
9
using highlight from aaf
...earcher is a protected method; how can I access to the searcher from
aaf ?
* is the doc id in aaf the same as my model id ?
* is the first param, query, the string query or the query object ?
Jean-Christophe Michel
--
symetrie.com
Better Nested Set for rails:
http://opensource.symetrie.com/trac/better_nested_set
2007 Mar 27
7
Eager loading not working well for me
Man my app is causing me so much grief lately.
Okay let''s say I have:
class Discussion
has_many :posts
end
class Post
belongs_to :discussion
acts_as_tree
end
Then let''s say I grab a discussion object and try to eager load all of
its posts:
discussion = Discussion.find(:first, :include => [:posts])
Seems simple enough and it grabs an entire tree of posts. However: