Hello,
I'm trying to figure out how to accomplish a rendering over an existing rendered partial. Some background stuff first:
I have a table that is rendered based on data from DB. Outside of my rendered partial, I have various select tags which allow the data to update from on the specific select tag selected. I have tried to do the following, to no avail.
<%= select "sales", "short_desc", Sales.find(:all).collect{|x| [ x.short_desc]}, {:prompt => ''},
:onchange => remote_function(:url => {:controller => 'sales', :action => 'filterResults'},
:with => "'value=' + value") %>
so in the method filterResults, I have sql statement that returns a result, and I have tried to render the partial again.
render :partial => "tableReport", :locals => {:sales => @sales }
Any help would be most appreciated, thank you for taking the time to ready through my answer.
Regards~