Displaying 13 results from an estimated 13 matches for "nested_set".
2012 Oct 04
0
acts_as tree, nested_set, something custom? Which would be best for my situation?
...ave children. Pretty standard so far.
Often a child tag will be under more than one parent (i.e. a child might
belong toone or more parents) and it wouldn''t necessarily have the same
children under one parent as it would in another.
Do and of the current extensions (acts_as_tree, acts_as_nested_set,
awesome_nested_set, etc) let a child have more than one parent?
--
Posted via http://www.ruby-forum.com/.
--
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-/JYPxA39Uh5TLH3Mbo...
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
2006 Feb 05
1
acts as nested set
Hi Railers,
Is the nested set model restricted to only one root?
I''m working on a screencast building a threaded forum and nested set comes
close but is lacking a few items for this project.
First, all the documentation I can find restricts a nested_set to one root
node, and a threaded forum would have many roots. Also, without a ton of
fancy sql or an ungodly amount of db calls, it doesn''t track the depth.
Is my understanding of nested sets correct?
I created an acts_as_threaded to get around these "limitations" which
perform...
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 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 tw...
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 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 d...
2005 Jul 25
2
acts_as_tree and traversing parent/child relationships
...s_tree :order => "name"
belongs_to :catagory, :class_name => "Category", :foreign_key =>
"parent_id"
has_many :sub_category, :class_name => "Category", :foreign_key
=> "parent_id"
Which seems right
I know that acts_as_nested_set has the ability to traverse through
the structure but everything I hear says not to use it yet. My
question is more or less can I till use it''s methods? Should I? Or
would the best practice be to write a helper for this?
I am a bit new to Rails but this is really stumping me, or...
2010 Sep 21
25
Working in install acts_as_commentable, On create, error: "unknown attribute: book_id"
Hello, I''m working to install the acts_as_commentable plugin on my
Rails 3 app.
After adding "acts_as_commentable" to my book model, I then added a
comment form on my book show view:
<% form_for(@comment) do|f| %>
<%= f.hidden_field :book_id %>
<%= f.label :comment %><br />
<%= f.text_area :comment %>
<%= f.submit "Post
2012 Jun 08
7
filter children with acts_as_tree
Hello Experts,
I have a tree of categories in this category object there is a property
called type.
the root categories have no type but the children have. so how I can get
all the roots with filled in children that have category type = ''B'' for
instance.
I tried to run Category.roots then delete children With a category not
equal to ''B'' but this causes a major
2011 Aug 15
3
- WEBrick server refuses to launch
...* heroku (2.4.1)
* highline (1.5.1)
* httparty (0.7.8)
* i18n (0.5.0)
* jquery-rails (0.2.6)
* koala (1.1.0)
* launchy (2.0.5)
* mail (2.2.19)
* meta_search (1.0.5)
* mime-types (1.16)
* multi_json (1.0.3)
* multi_xml (0.2.2)
* multipart-post (1.1.3)
* mysql2 (0.2.6)
* nested_set (1.6.4)
* nokogiri (1.5.0)
* oa-core (0.2.6)
* oa-oauth (0.2.6)
* oauth (0.4.5)
* oauth2 (0.4.1)
* orm_adapter (0.0.5)
* paperclip (2.3.8)
* polyglot (0.3.2)
* rack (1.2.3)
* rack-mount (0.6.14)
* rack-test (0.5.7)
* rails (3.0.7)
* railties (3.0.7)
* rake (0.9.2)
* rd...
2006 Jul 14
14
[URGENT] Need help getting rails app back up desperately
I''m desperate. A few hours ago I was checking my server because we are
running a survey for a new client and everything looked good for that
app but I noticed another Rails app was quite large (twice as normal)
so I decided it was time for a restart. Big mistake. Upon restart the
application gave me a 500 error. Checking the logs I found a stack
level too deep error that after hours I