similar to: acts_as_tree undefined method?

Displaying 20 results from an estimated 200 matches similar to: "acts_as_tree undefined method?"

2007 Dec 12
2
fxruby and framecontrole
I am new to (FX)ruby and am wrestling with the following question. In my application I have a three frame split by two splitters. One frame on the left side with a treelist and two frames above each other on the right side. The editable content of the right top frame depends on the item clicked in the treelist. The editable content of the right bottom frame depends on data enter in the right
2009 Aug 28
2
TreeCtrl Scrolling
I have been playing around with the wxRuby TreeCtrl for a couple of weeks now and I can''t figure out how to get the scrolling to work. I believe it has scrolling built in but I can''t get the to show up. I can place the TreeCtrl in a ScrolledWindow and scroll around over the tree but that breaks TreeItem visibility checks because the TreeCtrl doesn''t know about
2007 Dec 30
1
ReOrdering Wx::TreeCtrl Items
Given the following hash: #... @project_list = { ''Contract0'' => nil, ''Contract1'' => { ''Project1'' => nil, ''Project2'' => nil, ''Project3'' => { ''task1'' =>
2007 Dec 15
3
check_box not being checked
I''m new to RoR and I''m having a little problem that I can''t solve. My model is simple. I have Lists and ListItems. I have a view that loops through all the list items, and I put the HTML for the each list item row in a partial called _list_item.rhtml. This is the view, called show.rhtml <ul> <%= render(:partial => "list_item", :collection =>
2008 Nov 14
1
GenericDirCtrl#re_create_tree behaviour
Hi When GenericDirCtrl#re_create_tree is called in order to refresh the tree with any possible changes made to the file system since it was loaded, it doesn''t re-expand all the tree items that were expanded prior to calling re_create_tree. I''m working on a solution to note all open tree items and after re_create_tree manually expand the items that are still present in the tree.
2006 Apr 09
12
Help With Dependent Drop-Down and @Params
Hello All: I am trying to create a select box that is filled with options based on the user''s selection in a related drop-down. I have had success with this before using the examples provided by the following two sources: One posted by Rory at Rory on Rails - http://www.roryhansen.ca/?p=9 the other posted by Adam at
2007 Dec 28
2
controls within a wxTreeCtrl
What I''d like to be able to do is use a wxTreeCtrl to manage a tree layout of not only text, but several buttons which would line up adjacent to the text in the tree items. I''ve googled around a bit on this and it doesn''t seem straightforward, if it is possible at all. Can anyone provide any pointers for attempting this? In a simple ASCI schematic, it would be like
2020 Jan 31
0
Resource List Subscriptions: how to remove an item from another list ?
Hi, As mentioned in [1], a common pattern is to let everyone monitor everyone except oneself. How do implement this ? Is there something like this: [alice_list] list_item = full_list list_exclude_item = alice [bob_list] list_item = full_list list_exclude_item = bob If negative, would it complex to add to current Asterisk ? [1]
2007 Nov 13
3
New wxTree method
Here''s my first try at a contribution to the wxRuby project: The tree control seemed to lack a more Ruby-ish way to add a bulk of items to a tree control (and to easily connect a data structure to a tree). Since tree view can be seen as an array of arrays, I simply added a method called append_array (see attached file). With it, you can add a full tree as simple as: --- root =
2006 Nov 15
0
[740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2007 Jan 12
9
Nil object in E1 capture the order
I''m following the depot application in the rails bible Agile Web Development with Rails. In interation E1 NoMethodError in Admin#checkout Showing app/views/admin/checkout.rhtml where line #12 raised: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.include? Extracted source (around line #12):
2007 Jan 05
0
[832] trunk/wxruby2/samples: Fix samples for TreeItemIds as integers, fix image size in treectrl sample
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2014 Mar 29
0
rails 4 link_to post method
I have a rails 4 app that has a link_to with a post method but I keep getting: No route matches [GET] "/payments/136330" <%= link_to("Buy Now", buy_path(list_item), :method => :post) %> Ideas?? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving
2006 Jul 17
1
acts_as_tree and :include
hello there, i have a model that uses acts_as_tree: >class GbEntry < ActiveRecord::Base > acts_as_tree :order => ''created_at DESC'' >end and i want it to paginate, including all children to avoid unnecessary db queries: > @gb_entry_pages, @gb_entries = > paginate :gb_entries, :per_page => 15, :order => ''created_at DESC'',
2006 Jun 13
3
acts_as_tree problem accessing parent object
i have a model called certification_types that i''ve declared as acts_as_tree. I have a model called certification that belongs_to :certification_type . class CertificationController < ApplicationController ..... def summary_list @certifications = Certification.find(:all, :order=>''date'') end end summary_list.rhtml <% for certification in
2006 Jun 14
0
problems with acts_as_tree
I have a class called Organization that is organized as a tree (organizations have parent organizations) using a parent_id column and an organizations_count column. I used the generate scaffold method to create the controller and views. But when I go to add or update an Organization, there is no select box to select the parent Organization. I am surprised that the scaffold generator
2006 Jun 19
0
Eager loading and acts_as_tree
Hi all, I have a node structure which acts_as_tree. I am pulling the first two levels under the root node with: @root = Node.find(1, :include => [ { :children => [ :children, :parent ] }, :parent ]) How do I pull out the first three levels? What about four? @root = Node.find(1, :include => [ { :children => [ { :children => [:children, :parent] }, :parent ] }, :parent ])
2006 May 23
0
filtering results in acts_as_tree
I''m using a logical delete for a table and want to use acts_as_tree with it. Is there any way to filter the rows returned as the tree is traversed to include only those records where the deleted column is equal to FALSE? thanks very much for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 May 24
0
Bump: filtering results in acts_as_tree
---------- Forwarded message ---------- From: Larry White <ljw1001@gmail.com> Date: May 23, 2006 10:35 AM Subject: filtering results in acts_as_tree To: rails@lists.rubyonrails.org I''m using a logical delete for a table and want to use acts_as_tree with it. Is there any way to filter the rows returned as the tree is traversed to include only those records where the deleted column
2006 May 30
2
acts_as_tree, acts_as_list and is invincible (help!)
So I have the following model class Topic < ActiveRecord::Base belongs_to :topic has_many :topics, :order => :position acts_as_tree :order => :position acts_as_list :scope => :topic_id end that I use for a site''s navigation. Everything (list, create, edit, even the drag&drop sort) works fine, except the destroy function, which the vanilla version def destroy