Displaying 3 results from an estimated 3 matches for "orderstatus".
2006 Mar 14
4
has_one
...and
cardTypes.id = ''blah''
I don''t want the cardTypes.id = ''theprimarykey" part in there.
Any help is greatly appriciated. My Order model is below:
class Order < ActiveRecord::Base
set_primary_key "customerId"
belongs_to :account
has_many :orderStatuses, :finder_sql =>
''SELECT name '' +
''FROM orderStatuses ors '' +
''WHERE ors.id = "#{status}" LIMIT 1''
has_many :cardTypes, :foreign_key => ''id'', :finder_sql =>
''SELECT shortName,...
2010 Dec 29
1
Script Output Format
...put must be comma separated to be imported into a spreadsheet.
the output that i obteined was
Date/Time,We. Active Threads,W. Total Threads,W. Worker Threads,Name
29-12-10/11:43:01,0,250,0,/FIM
,0,/mytest
,0,/mockofprod/financing/customercentre
,0,/mockofprod/financing/commercial/amt
,0,/account/orderstatus
,0,/activities
as you can see, the first row it's ok, but the second and third, etc etc, are not formated. any ideas of how can i achive this?
NOTE: the first three values are simple commands that i put in order, the fourth and fifth are from a file.
this is part of the code.
printf "...
2006 Jun 28
6
select_tag
in my controller
@cursos = Curso.find_all
in my view i''m trying to do a select_tag with the results @cursos, using
a helper
select_tag "name" options_for_select(@cursos) --------> not works
select_tag "name" @cursos --------> not works
how to do it, using the helper?
tks
--
Posted via http://www.ruby-forum.com/.