search for: subcat

Displaying 10 results from an estimated 10 matches for "subcat".

Did you mean: subca
2005 May 17
8
acts_as_tree elegant tree printing
...ts_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 ret = "<ul>" category.children.each { |subcat| if subcat.children.size > 0 ret += "<li>" + subcat.title ret += find_all_subcategories(subcat) ret += &quo...
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 with...
2009 Jan 21
1
snoop, vnics and ping.
...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 crossbow? Or should I open a P1 for this? And what category/subcat should I file the test suite bug? - there should be some sort of test that makes sure this kind of bug is never introduced. The commands are/were: # ifconfig e1000g2 plumb # ifconfig e1000g2 192.168.85.10 up # dladm create-vnic -l e1000g2 vnic0 # ifconfig vnic0 plumb # ifconfig vnic0 192.168.85.22...
2006 Jan 13
1
validating without saving
...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, "body"=>"", "zipcode"=>0, "subject"=>"", "contactok"=>"0", "views"=>0, "user_id"=>0, "image"=>nil, "email"=>nil}, @new_record=t...
2006 Mar 29
4
HELP: Rails / Ajax with 3 Drop down lists (see code)
Hi All, I have successfully implemented a two tier drop down lost with rails. However I''m stumped on how to make a third tier. For example: The form has three select lists; Catagory, Subcatagory and Make User Experience Desired: 1. On page load a Catagory Select List shows a list of Catagories from the database. example: Portable Electronincs Laptops etc. 2. Upon select of Catagory (above) subcatagory select list is updated <assuming Portable Electronincs selected above the res...
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'', :collection => category.subcategories, :order => ''position'' %> # position is a column in my subcategories table <% end %&...
2007 Nov 09
2
live upgrade and xvm...
...that the output of prtconf -v doesn''t contain a line with ''biosdev'' if booted under xvm, which is why lumake works on regular Solaris. I''m happy to file a bug if this isn''t just me being boneheaded. My only question is what''s the correct cat/subcat. -- John Wren Kennedy Solaris RPE
2017 Jul 17
0
dbplyr error updating database
...nnection Auto-disconnecting SQLiteConnection The specific chunk of server code being run is: kpnew<-src_sqlite("/var/sqlite/KPProfile2") stmnt<-paste0("update kpquestions set mrisupercat = '",input$supercat,"' , set mricategory = '",input$subcat, "' , where VariableNumber = ",input$vnum, ";") print(stmnt) dbSendQuery(kpnew,stmnt) the print(stmnt) can be read above sessionInfo() results R version 3.4.0 (2017-04-21) Platform: x86_64-redhat-linux-gnu (64-bit) Running under: Red Hat Enterprise Linux Matr...
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