similar to: acts as nested set

Displaying 20 results from an estimated 3000 matches similar to: "acts as nested set"

2006 Mar 15
5
acts_as_threaded - help ???
Hi, has anyone successfully used the acts_as_threaded plugin with postgresql? I''m using rails 1.0 and ruby 1.8.4 on linux. Following the screencast on http://www.railtie.net/articles/2006/02/05/rails-acts_as_threaded-plugin , I got to where we''re ready to create our first post, having made the changes to controllers/posts_controller.rb, views/posts/_form.rhtml,
2006 Feb 06
3
acts_as_threaded plugin
This plugin is related to the acts_as_nested_set functionality but differs in that it allows multiple roots to exist within your database. The other benefit, is that when adding a child, it doesn''t perform a full table update to rebuild the tree, each child insertion only affects the tree that it is placed in. It even comes with my first screencast to show how you can build an old
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
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
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 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/.
2011 Feb 18
0
Acts as nested - Enforcing a Max Level
Hello, I''m currently using the gem ''nested_set'' for comment threading. What I want to do is prevent the comment level from going more than 2 levels deep. What I tired doing was something like this: class Comment < ActiveRecord::Base .... before_save :ensure_max_nestedset_level private # We don''t want comments to go
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 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,
2006 Mar 03
5
Message Board?
I''m interested in working on a message board application that uses ruby on rails. I''d like to see something end up similar to vBullieten, but with more of a 37signals type of less-is-more philosophy... mostly meaning less need for preferences and settings and configurations. I''ve checked rubyforge, and it looks like there are various forum apps uploaded there, some
2007 Jun 04
2
access to acts_as_threaded
Hi, I have trouble accessing the acts_as_threaded plugin at http://railtie.net looks like the site is down. Does someone have a copy? or knows an alternative repository for the plugin? please you can zip it to to this address georgkam[at]gmail[dot]com Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2006 May 12
5
Bumping threads in a forum-type app
I have a forum-type application. The Board model has many comments, the Comments model acts as a tree. So I have a board with multiple comments, some comments are parent comments and there are comments that belong to a parent comment, making up a thread. Like most forums, I want it so that threads are sorted based on the date of their last comment. But I have no idea how to specify this in
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
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
2006 Jul 14
0
acts_as_nested_set and acts_as_threaded
I''m trying to use acts_as_nested_set, as modifed by Bob Silva to add threaded functionality. I''m getting the following error: undefined method `display_threads'' for #<PostController:0x3ae9828> ... #{RAILS_ROOT}/app/controllers/post_controller.rb:18:in `list'' Line 18 in post_controller.rb shows: [post_controller.rb] def list display_threads @posts
2006 Jan 16
2
acts_as_tree with Modified Preorder Traversal?
Has anyone extended Rails''s acts_as_tree to use the Modified Preorder Traversal algorithm? This is a really clever trick for optimizing access to trees stored in databases, as described lucidly in this article: http://www.sitepoint.com/article/hierarchical-data-database/2 It adds two integer fields, a "left counter" and "right counter", to each row. By
2006 May 10
2
Ordering of subsets in a model.
Alright, I got this table with lots of entries for menus. There''s several menus (with their own model since each menu got some special information). Now, I want to be able to specify the order of the menu entries inside the menu. acts_as_list seems to not quite do the trick since it does ordering "globally" on the whole model and acts_as_nested_set seems like overkill since
2016 Apr 10
5
what is the faster way to search for a pattern in a few million entries data frame ?
Hi Duncan, > Didn't you post the same question yesterday? Perhaps nobody answered > because your question is unanswerable. sorry, I got a email that my message was waiting for approval and when I look at the forum I didn't see my message and this is why I sent it again and this time I did check that the format of my message was text only. Sorry for the noise. > You need to
2006 Jun 22
0
acts_as_threaded with pagination
Does anyone have the magic sql to get pagination working with acts_as_threaded? Return like: 1 - parent 1.1 - response 1.1.1 - response to response 1.2 - response 2 - parent 2.1 - response etc... up to the first 20 or so. It seems easy to get from a parent to all children, but to say get the first 20 parents and children is really hard for me to get my head around. I can imagine getting
2005 Oct 12
2
Help with act_as_nested_set
Hi, I''m trying to get act_as_nested_set working, and I''m puzzled. I googled the following http://codefetch.com/cache?url=http://media.pragprog.com/titles/rails/code/r ails-code.tgz <http://codefetch.com/cache?url=http://media.pragprog.com/titles/rails/code/ rails-code.tgz&path=rails-code/ar/acts_as_nested_set.rb&lang=ruby&qy=ruby>