Displaying 1 result from an estimated 1 matches for "coordinator_name".
2006 Jan 08
2
RoR AJAX select box update?
...t_coordinator_id" name="budget[coordinator_id]"
onchange="<%= remote_function(:update => "budget_project_number", :url
=> { :action => :get_projects }) %>">
<%= options_from_collection_for_select(Coordinator.find_all, "id",
"coordinator_name") %>
</select>
<select id="budget_project_number" name="budget[project_number]">
</select>
#get_projects
def get_projects
@results = Project.find_all
render :partial => ''options''
end
# _options.rhtml
<% for project in...