similar to: Help with act_as_nested_set

Displaying 20 results from an estimated 100 matches similar to: "Help with act_as_nested_set"

2006 Jul 20
3
acts_as_tree
Hello, I''m trying to create categories that have their own subcategories, and each subcategory may have its own subcategories, .. and so on. After some reading, I found out that the best way for creating such a thing is to use acts_as_tree, but I didn''t find any tutorial or article that explain this in a clear way. After a lot of work I was finally able to create categories and
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
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 Oct 22
1
[Fwd: Wxruby-development post from noreply@rubyforge.org requires approval]
Alex: Any idea why the list is still bouncing these? "noreply at rubyforge.org" is in the list of addresses that are supposed to be allowed to post even though not subscribed. What is that about "Message has implicit destination"??? Kevin -------- Original Message -------- Subject: Wxruby-development post from noreply at rubyforge.org requires approval Date: Sat, 21 Oct
2006 Jan 30
2
can I update many rows with one call to the database?
Hello, How would I go about updating 7000 or so rows of my database with unique values? (In other words, I''m not setting them all to NULL or incrementing or something... each row gets a new, special value.) But I can''t seem to get my rails app to do this in less than 7000 connections to the database! I''ve looked very hard (3 horus!), and can''t find anything
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 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 nil parent; should have left_column =
2006 Oct 21
0
[ wxruby-Bugs-6262 ] MDIParentFrame#add_child not working on OS X
Bugs item #6262, was opened at 2006-10-21 18:13 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=6262&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Kevin Smith (qualitycode) Summary: MDIParentFrame#add_child not working on OS X Initial Comment:
2006 May 10
1
acts_as_nested_set does not work (in my case).
Hello, I am using acts_as_nested_set. My problem is that the columns "lft" and "rgt" get the value 0 if I create a new entity. If I delete an entity I get negative values (-1, -2, -3) - but for all entities. Is there anything missing? Is there any example for "acts_as_nested_set" in the web? -- Posted via http://www.ruby-forum.com/.
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 05
0
JavaScript Prompt and link_to_remote
Hi all, I would like to get one of the parameters for a link_to_remote with JavaScript prompt. So far I have this: link_to_remote(image_tag("/images/interface/add.png"), :before => "$name = prompt(''Name?'')", :url => { :action => ''add_child'', :id => node, :name => XXX }, :update =>
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:
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
2010 Jan 25
6
Best practice for setting ACL
Hello forum. I''m in the process of re-organizing my server and ACL-settings. I''ve seen so many different ways of doing ACL, which makes me wonder how I should do it myself. This is obviously the easiest way, only describing the positive permissions: /usr/bin/chmod -R A=\ group:sa:full_set:fd:allow,\ group:vk:read_set:fd:allow \ However, I''ve seen people split each
2018 Nov 13
0
Error running "samba-tool dbcheck" after going from 4.8.6 to 4.9.2
On Mon, 2018-11-12 at 20:36 +0000, Noel Power wrote: > Hi > > On 09/11/2018 10:21, Andrew Bartlett wrote: > > On Fri, 2018-11-09 at 11:46 +0300, Taner Tas via samba wrote: > > > > I just tested Samba 4.9.2 on one of my DCs, previously running > > > > version 4.8.6. Immediately after install, I ran "samba-tool dbcheck" > > > > and got
2006 Feb 22
9
acts_as_habtm_list plugin
I''d like to announce acts_as_habtm_list plugin for rails. acts_as_habtm_list is a Ruby on Rails plugin, that can manage ordered lists through a join-table. It is providing almost the same Api as acts_as_list. The position column has to be defined in the join table. You can find additional information at: http://www.inlet-media.de/acts_as_habtm_list/ Install it executing this command
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
2006 Feb 27
2
Read IMAP
Hello, I have a question about IMAP : I want read a IMAP mailbox in my application. I have found 2 pages about this : http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer/versions/203 http://www.codefetch.com/search?qy=login&lang=ruby But, Rails don''t want use ''net/imap''. So I can''t =( Thank you for your help pmt -- Posted via
2018 Nov 08
3
Error running "samba-tool dbcheck" after going from 4.8.6 to 4.9.2
I just tested Samba 4.9.2 on one of my DCs, previously running version 4.8.6. Immediately after install, I ran "samba-tool dbcheck" and got the following: Checking 511 objects ERROR(<type 'exceptions.UnicodeDecodeError'>): uncaught exception - 'ascii' codec can't decode byte 0xc3 in position 25: ordinal not in range(128)   File
2008 Nov 03
0
Some Samba questions
1) How can I check which ZFS filesystems still have sharesmb=on? I can''t seem to recursively list that property or other properties properly. 2) Currently I am having issues with the "extended" ACLs (NFS v4/Windows compliant?) setup by default - I am mounting it as the user that owns/supposed to own the files. Can this be turned off and the normal user/group/other type of