Displaying 10 results from an estimated 10 matches for "subcats".
Did you mean:
subcat
2005 May 17
8
acts_as_tree elegant tree printing
Hi,
I''m working with acts_as_tree to print an unordered list of items:
Root
-- Child
---- Child
I''ve got this working, however I''d like to know if there is a more
elegant fashion that I''m unaware of:
#Takes a parent category and recursivley returns all children
def find_all_subcategories(category)
if category.children.size > 0
2006 Jun 17
5
Having trouble listing tiers of categories
...5
4 Shih Tzu 1
5 Cat 0
6 Wiener Dog 1
7 Persian 5
I''d like to list it like
Dog
--Pug
--Shih Tzu
--Wiener Dog
Cat
--Siamese
--Persian
Right now it''s only listing them in one long list. But I''d like to list
each parent category and have the subcats listed under them.
Any ideas?
--
Posted via http://www.ruby-forum.com/.
2005 Dec 27
6
avoid multiple render per action
Hello,
I have a hash that contains categories, and each category ID is a
hash of subcategories. What i want to do is dynamically load that
hash, loop thru it, for each category , subcat run a query against the
DB, and render a partial. The issue is i put the render:partial in a
for loop but you can only render once per action. What is the best
way to loop thru all my categories without a
2009 Jan 21
1
snoop, vnics and ping.
So, just to play with vnics with 106, I have...
e1000g2 plumb''d with 192.168.85.10
vnic0 is created on top of e1000g2 with 192.168.85.22
I snoop on e1000g2 to see the traffic.
I ping 192.168.85.22 and it works.
I stop the snoop on e1000g2.
I ping 192.168.85.22 and it doesn''t work.
I start the snoop on e1000g2.
I ping 192.168.85.22 and ping works.
Is this a new feature with
2006 Jan 13
1
validating without saving
i am trying to validate without saving use the valid? method on my
object. however i keep getting the following error (that i reproduced
in console) "NoMethodError for field"
Any ideas ?
thanks
adam
Loading development environment.
>> p = Post.new
=> #<Post:0x407b6050 @attributes={"created_on"=>nil, "subcat"=>1,
"cat"=>nil,
2006 Mar 29
4
HELP: Rails / Ajax with 3 Drop down lists (see code)
...Catagories and Subcatagories complete using an observer (see
below.) However I cannot get a second observer to trigger on the
subcatagory selection. Is it a DOM issue? Is the Subcatagory select list
once filled identified by some other name?
-JC
The code thus far:
THE CONTROLLER
def lookup_subcats
@subcatagories =
Subcatagory.find_all_by_catagory_id(@params[:catagory_id]).collect
{|subc| [subc.subcatagory, subc.id]}
render :inline => "<%= select ''tag'', ''subcatagory_id'',
@subcatagories, {:selected => @subcat_count } %>"
en...
2006 Jul 02
4
:order in partial
Hi,
i was looking through the docs and couldn''t find a good clean solution
for ordering a partial with an :order clause.
say i was iterating over categories and thier corresponding
sub-categories (regular belongs to) and wanted to order the
subcategories according to a certain column;
<% for category in @categories %>
<% render: partial => ''sublist'',
2007 Nov 09
2
live upgrade and xvm...
Hi,
I have an x86 box with two boot disks. Each disk contains a BE,
and I upgrade from one to the other. When trying to do a lumake
from 75 to 76, and again from 76 to 77 I have the following error
from lumake:
ERROR: The system must be rebooted after applying required patches.
Please reboot and try again.
ERROR: Cannot make the boot environment.
I only get this error if I''m
2017 Jul 17
0
dbplyr error updating database
I am trying to use a shiny app to update records in an sqlite database. I keep running into the following error:
unable to find an inherited method for function 'dbSendQuery' for signature '"src_dbi", "character"'
The query I am trying to send is:
[1] "update kpquestions set mrisupercat = 'Demographics - Respondent' , set mricategory =
2008 Feb 20
12
no luck with Xen....
Perhaps someone has ideas on this topic, a recent attempt to play with Xen was a reather unlucky event, all what I will be able to demonstrate on that system is a PV ONNV domU which
ikely will not be very attractive to the audience :(
HW: U40M2, 2 x 2 core AMD revF procs, 8GB MEM, Phonix BIOS 1.5 (latest)
1 x 200GB internal SATA drive
SW: dom0 ONNV build 82, latest VirtManager from