search for: listsetting_code

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

2006 Mar 23
0
Newbie - populating select list from db - BUMP :)
...lues 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", :url => {:action => :listSetting_code} ) %> which will observe the select object and run the code from ListSetting_code method from controller. the log after changing the select is as below: Processing ListAdminCont...
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"