Displaying 10 results from an estimated 10 matches for "list_nam".
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 this message because you are subscribed to the Google Groups "Ruby on Rails: Talk&qu...
2006 Jun 16
0
trying to pick up a little speed...
...ty.new(:name => "Main Office")
@float = Facility.new(:name => "Floater")
@facility = Facility.find(:all)
@facility = @facility << @main_office
@facility = @facility << @float
@bh_category = Valuelist.find(:all,
:conditions => ["list_name = ''BH Category''"],
:order => ''list_value'')
@position = Valuelist.find(:all,
:conditions => ["list_name = ''Position''"],
:order => ''list_value'')
# more select lists populated but...
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
...Now I have the table setup (checked it in SQLite Database Browser), but
am running into errors interacting with my forms when I run the rails
server. I know I have some problems with my views and have tried
changing around the _form.html.erb and other .erb files to reflect
:list_id as opposed to :list_name, but I can''t figure out what I need to
do to get the list id into the database table for the tasks. Any ideas
or advice? Would be very much appreciated.
Thank you so much!
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google...
2006 Jun 19
9
index columns in postgres
...aluelists'' table so it hits this table with 4 separate queries
to populate 4 separate selection lists. I can''t see any difference in
speed. Do I have to reference the index within my controller code?
ie...
@employment_type = Valuelist.find(:all,
:conditions => ["list_name = ''Employment Type''"],
:order => ''list_value'')
@position = Valuelist.find(:all,
:conditions => ["list_name = ''Position''"],
:order => ''list_value'')
''list_name'' is...
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 564...
2007 Jan 12
9
Nil object in E1 capture the order
...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):
9: <% form_for :list, :url => { :action => :save_list } do |form| %>
10: <p>
11: <label for="list_name">List Name:</label>
12: <!-- <%= form.text_field :name, :size => 40 %> -->
13: </p>
I have a page with all the product listed. And I''m creating the list by
choosing from products on this page.
For database and model setting I have
product.r...
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