There is a drop down using select
<%= select("array", "folder", @rows.keys, {}, :onchange =>"?" )%>
There is a partial called “form”
<%= render "form"%>
I need to render the partial whenever there is a change in the selection. Please, let me know if there is a way to do it. I found that the remote_function is deprecated from rails 3.0. I have seen all possible links here with onchange and select tags but could not find a proper answer. I’m new to rails, jQuery and Ajax. Please help
Thanks
why not render the form in the same page and hide and show it on change of select tag
I you still want to make an ajax request I pretty simple too
on the server side you need to respond_to the ajax request using
format.jsand render a template directed using render command or just define a.js.erbfile