search for: betternestedset

Displaying 12 results from an estimated 12 matches for "betternestedset".

2009 Oct 14
0
[PATCH server] hack betternested set to enable pool deletion
This is an ugly hack to fix the betternestedset plugin as currently a bug does not allow pools to be deleted. The single line commented out in this patch deletes the pool itself instead of only its children for whatever reason. This wouldn't be a problem were it not for the recent change to active record which enforces optimistic locking up...
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: http://op...
2007 Mar 17
0
Unit test problem -- BetterNestedSet?
After adding validates_uniqueness_of :login_name to a User model that acts_as_nested_set using BetterNestedSet, my unit tests started failing. On investigation, I found that valid? wasn''t true for the records in question after they were created. Running the exact same sequence of tests by hand in the console -- creating records, then calling move_to_child_of on them -- works fine. If I comment ou...
2010 Mar 08
0
betternestedset in rails 3.0
Hi Guys, when i upgraded my rails 2.3.4 to 3.0 my betternestedset is not working. It was working fine in the older version. This is my controller def new cat = Category.new cat.text=''test'' cat.save cat.move_to_child_of(Category.find_by_id(1)) #26 redirect_to :action => ''index'' end It gives me this e...
2008 Jun 23
2
Messaging system
Hey All, I''m trying to put a messaging system together using this http://www.novawave.net/public/rails_messaging_tutorial.html. All working fine but I''d like to be to thread the replies. At the moment, a message goes out, someone replies to it and the original is simply included in the reply. I''d like to be able to thread the replies using acts_as_tree or something but
2007 Jul 18
10
Rails - Mock going out of scope?
Hello list, I think I have a rails related RSpec problem with a mock going out of scope on a recursive call to a model. The code is at: http://pastie.textmate.org/79821 if you want to see it highlighted. I have pasted it below as well. Basically, I have an acts_as_nested_set model called "Node", which works fine. I have a function which finds the language name of the node instance.
2009 May 22
1
[PATCH server] fix for BZ #477796: pool name uniqueness
We already had the validation rule in place, but the way the betternestedset API sets the parent_id the rules were being bypassed. Signed-off-by: Scott Seago <sseago at redhat.com> --- src/app/models/pool.rb | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/app/models/pool.rb b/src/app/models/pool.rb index 2979fcb..0a63723 100644 --- a/s...
2008 May 06
0
Nested Set question
Hi I''m want to create a nested forum list and i want to use BetterNestedSet should i make the forum act as BetterNestedSet or should i create a diffrent model for the forum order ? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: T...
2007 Nov 21
3
update_attribute weirdness in edge
If I am changing a boolean value, no matter what approach I take, I get the same results: lets say table "users" has an "enabled" field that is boolean: user = User.find(1) user.enabled.toggle NoMethodError: undefined method `toggle'' for false:FalseClass user = User.find(1) toggle(user.enabled) NoMethodError: undefined method `toggle'' for
2009 Nov 26
2
[error] avahi_entry_group_add_service_strlst("AdminNodeFQDN") failed: Invalid host name
...r/lib/ruby/gems/1.8/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...
2008 Apr 16
8
Will acts_as_taggable_on_steroids and better_nested_set work together?
...n/Projects/superb/vendor/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/...
2009 Jul 23
1
[PATCH server] changes required for fedora rawhide inclusion.
...xtra_release} +# full source URL will be added with the next oVirt release. This is a pre-release +# code drop to make sure we get the package approved by f12 feature freeze. Source0: %{name}-%{version}.tar.gz #Entire source code is GPL except for vendor/plugins/will_paginate and #vendor/plugins/betternestedset, which are MIT, and -#public/javascripts/jquery.*, which is both MIT and GPL -License: GPLv2+ and MIT +#public/javascripts/jquery.*, which is both MIT and GPL, and +#src/flexchart/com/adobe/serialization/json/* which are BSD +License: GPLv2+ and MIT and BSD Group: Applications/System Requires: ru...