Displaying 1 result from an estimated 1 matches for "lookup_subcats".
2006 Mar 29
4
HELP: Rails / Ajax with 3 Drop down lists (see code)
...I have Catagories and Subcatagories complete using an observer (see
below.) However I cannot get a second observer to trigger on the
subcatagory selection. Is it a DOM issue? Is the Subcatagory select list
once filled identified by some other name?
-JC
The code thus far:
THE CONTROLLER
def lookup_subcats
@subcatagories =
Subcatagory.find_all_by_catagory_id(@params[:catagory_id]).collect
{|subc| [subc.subcatagory, subc.id]}
render :inline => "<%= select ''tag'', ''subcatagory_id'',
@subcatagories, {:selected => @subcat_count } %>"
en...