Displaying 2 results from an estimated 2 matches for "listadmincontrol".
2006 Mar 23
0
Newbie - populating select list from db - BUMP :)
...tSetting_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 ListAdminController#listSetting_code (for 127.0.0.1 at
2006-03-22 14:39:17) [POST]
Parameters: {"action"=>"listSetting_code", "value"=>"listSetting_code",
"1"=>"", "controller"=>"list_admin"}
2 short n00b questions:
1....
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"