search for: listset

Displaying 2 results from an estimated 2 matches for "listset".

Did you mean: list_set
2006 Mar 23
0
Newbie - populating select list from db - BUMP :)
Hi! in the same problem with a select with some values from db: the following select in test.rhtml: <%= select(:listSetting, :code, @listSettings) %> where @listSettings = ListSetting.find(:all, :order => "code").map {|u| [u.code, u.id] } i have an observer_field defined in test.rhml as below: <%= observe_field("listSetting_code", :update => "values_span",...
2006 Mar 22
4
Newbie - populating select list from db
Can''t seem to find an example of this anywhere - how do I populate a select list in a form from a database? I have a form to create a new task. The task is for a client, so there should be a select list populated from my clients table. I thought this would work: <%= select ''task'', ''client_id'', Client.find_all, "id", "name"