search for: list_names

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

Did you mean: list_name
2012 Jun 27
2
Select Helper Array of Array + Filter
Noob alert! Hi, I am having trouble figuring out how to filter a select helper. The following shows all of the rows in the table but I would like to filter the collection from the list_name column (:list_name => "Project Status"): @project_status = Valuelist.all.collect {|s| [s.list_value,s.id]} Thanks in advance, James -- Posted via http://www.ruby-forum.com/. -- You received
2006 Jun 16
0
trying to pick up a little speed...
I have a ''find'' screen where I am populating some select lists in the controller (perhaps some of this should be moved to the model). I am still using this in development mode so I am not getting benefit of locked models and caching anyway but in... def find @personnel = Personnel.find(:all) @main_office = Facility.new(:name => "Main Office") @float =
2005 Sep 16
0
Creating domU failed with "xenconsole: xs_get_domain_path(): No such file or directory"
...xen/web/resource.py", line 59, in render return meth(req) File "/usr/lib/python/xen/xend/server/SrvDomainDir.py", line 135, in render_GET self.ls_domain(req, 1) File "/usr/lib/python/xen/xend/server/SrvDomainDir.py", line 149, in ls_domain domains = self.xd.list_names() File "/usr/lib/python/xen/xend/XendDomain.py", line 94, in list_names doms = self.list_sorted() File "/usr/lib/python/xen/xend/XendDomain.py", line 85, in list_sorted doms = self.list() File "/usr/lib/python/xen/xend/XendDomain.py", line 77, in list...
2012 Jul 19
3
write list to ascii
Dear all, apologies for this (perhaps recurrent) question but I did not found a question when searching mailing lists. How to write a list of a simple kind, e.g.: abc <- list(one=(1:2), two=(1:5)) # to a file? I understand that write() & co. cannot work but when I try sink("aa.txt", append=T, split=T) abc sink() # the output is indeed "split by rows" in the
2011 Apr 13
2
setting pairwise comparisons of columns
Hi, I have a number of genes (columns) for which I want to examine pairwise associations of genotypes (each row is an individual)...For example (see data below), I would like to compare M1 to M2, M2 to M3, and M1 to M3 (i.e. does ac from M1 tend to be found with bc from M2 more often than expected.) Down stream I will be performing chi square tests for each pair. But I am looking for a way to
2012 Aug 08
1
Creating ToDo List App
Hi, New Rails user here trying to create a basic todolist app in rails 3.2.6 and running into some foreign key issues. Here''s what I did... I generated scaffolds list title:string & task description:text listname:string Next, in order to link the listname for Tasks and the list titles in the Lists I generated a migration file which looks like this class AddListIdToTasks <
2006 Jun 19
9
index columns in postgres
I am in a holding pattern while client decides upon changes and so I am working some things out internally so it seems to me that indexing frequently searched table fields might be useful. I am using postgres and via postgres, I have added an index to one of my tables whose index is the same name as the column name. The ''find'' screen I am using this to judge populates a number
2008 Jul 11
0
PATCH: Ignore errors from dieing domains in RPC server
...for dom in domains: + try: + ret.append(fixup_sxpr(dom.sxpr(not full))) + except: + log.warn("Failed to query SXPR for domain %s" % str(dom)) + pass + return ret else: return XendDomain.instance().list_names(state) -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648...
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):
2006 Jul 02
10
Use Rails or PHP?
I''m new to RoR and have used PHP. I want to develop a personal organizer that allows me to add lists (tables) and search them. The ActiveRecord concept seems to allow me to set up something that works with an existing table, but I want the ability to add tables without programming. I know how to do this in PHP and I can put the SQL into queries in RoR, but does ActiveRecord let