similar to: acts_as tree, nested_set, something custom? Which would be best for my situation?

Displaying 20 results from an estimated 5000 matches similar to: "acts_as tree, nested_set, something custom? Which would be best for my situation?"

2010 May 12
3
Best Gem For Threaded Comment Storage?
Dear List, Given that I am developing a rails 2.3.5 site, When it comes to storing threaded 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
2009 Aug 19
10
acts_as_list / acts_as_tree / acts_as_nested_set - which one
I am creating forum application which needs usage of acts_as_list or acts_as_tree or acts_as_nested_set. I am unable to decide among these. please could some one recommend from their experience? -- Posted via http://www.ruby-forum.com/.
2011 Mar 08
2
Rails - Acts as Nested - Impossible move, target node cannot be inside moved tree.
Hello, I''m using the Awesome Nested Set plugin: https://github.com/collectiveidea/awesome_nested_set And in my model I do the following: acts_as_nested_set after_save :ensure_max_nestedset_level private def ensure_max_nestedset_level if self.level > 2 self.move_to_child_of(parent.parent) end end I do this to keep the levels from getting
2006 Jul 06
3
How To write an acts_as* plugin
Hi, I need to understand how to write an acts_as_XXX (similar to acts_as_tree) plugin Any good resource to get me started? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060706/a974ff06/attachment.html
2006 Jul 18
1
Bad values for acts_as_nested_set?
I moved from acts_as_tree to acts_as_nested_set because I need the all_children method. I''ve seen an alternative way to add this method to acts_as_tree here: http://www.chuckvose.com/articles/2006/05/24/recursive-children But I''d prefer to use the more efficient way of acts_as_nested_set (and not to have to revert to my old code). Anyway, here''s my issue: if I
2005 Jul 25
2
acts_as_tree and traversing parent/child relationships
I am working on an Rails application that uses a pretty complex category structure through out the site. I have defined a table to house all the info and a FK to reference parents within the table CREATE TABLE categories ( id int(11) NOT NULL auto_increment, name varchar(50) NOT NULL, parent_id int(11) default NULL, constraint fk_category_id foreign key (category_id) references
2006 Jun 20
2
Converting from acts_as_tree to acts_as_nested_set
I''m currently using acts_as_tree to display threaded Comments on my forums-like site. It''s waaay too slow to display a page with 1,000 comments, as it''s issuing a TON of selects. I''m pretty sure I want to convert to the nested set model, using acts_as_nested_set or acts_as_threaded. This should give me the performance I''m looking for. The problem,
2009 Jun 20
0
STI or MTI design ?
I am trying to implement a directory structure (Libraries can contain other Libraries or Documents) using the plugin ''awesome_nested_set'' if lfe was simple (only Libraries) it would be over already, but I don''t see yet how to design the models to handle also Documents in the tree .. should I define an Item model, with acts_as_nested_set and have Library model and
2011 Feb 18
1
Rails plugins new official maintainers
Hey guys, This is the final list of the new maintainers of each plugin. We need two more things to do: First please the owners of the repos add the rest of the maintainers. Second I will add a note on each rails/plugin mentioning this repos updates. So from now on, if someone else is interested in helping/contributing please send a message to the appropriate repo owner. verification
2007 Jan 13
0
better nested set 0.1
We are pleased to announce the 0.1 release of the plugin betternestedset. It greatly enhances ActiveRecord''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:
2006 Feb 25
3
Enumerating over a Tree by Depth
I have a model using acts_as_tree which is working fine. Being new to Ruby I''m don''t know what enumerator is best to use for traversing a tree by depth. I can write one, but before I do I wanted to know if there is there an enumerator for traversing trees available that the community recommends? Thank you, Jose -- Posted via http://www.ruby-forum.com/.
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
2005 May 17
8
acts_as_tree elegant tree printing
Hi, I''m working with acts_as_tree to print an unordered list of items: Root -- Child ---- Child I''ve got this working, however I''d like to know if there is a more elegant fashion that I''m unaware of: #Takes a parent category and recursivley returns all children def find_all_subcategories(category) if category.children.size > 0
2006 Apr 30
4
acts_as_ordered_tree
I need an ordered (sortable tree) and I just was thinking if somehting like this is possible: class Item< ActiveRecord::Base acts_as_tree :order => "position" acts_as_list :scope => ''parent_id = #{self.id}'' end For my understanding mixing of two acts_as should be p?ssible, at least in this case, right? Unfortunatly the :scope is not working, I am not
2006 May 02
1
Active Records Tree Cache
Hi, I have a model that uses acts_as_tree option to manage a tree structure in the database. Is it possible to fetch the entire tree with constant number of database calls and cache the tree in memory? Thanks! Bob -- Posted via http://www.ruby-forum.com/.
2006 Feb 07
2
Is acts as nested set safe in a concurrent environment?
Hi I was wondering if acts_as_nested_set can be used safely with concurrently updates? The fact that so much of the tree needs to be rewritten on inserts concerns me. Is anyone actually using it. I noticed that the status of acts_as_nested_set was unclear at the time the rails book was written. Regards, Glen
2006 May 31
1
Help enhancing acts_as_nested_set
I''m trying to enhance acts_as_nested_set. Well actually I already have, but I''ve done a hack up job of it. I would like to contribute these enhancements back, but I need a little help. I''m a complete newbie to this stuff. The only thing I new before coming into this project was vanilla HTML. So over the course of two weeks I''ve picked up Ruby, Rails, MySQL,
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
2010 Mar 19
2
auto_complete plugin on rails 2.3.5
Hi, this is my first post. I have run: $ ruby script/plugin -v install auto_complete but the result is: Plugin not found: ["auto_complete"] #<Errno::ENOENT: No such file or directory - /dev/null> I have also try to run: $ ruby script/plugin -v list and the result is: Discovering plugins in http://dev.rubyonrails.com/svn/rails/plugins/ /CHANGELOG /account_location/
2006 Feb 06
2
acts_as_nested_set
Where can I see the API acts_as_nested_set constructs? I''ve read its page in api.rubyonrails.com but I don''t see how to manage the tree from there. -- fxn