I have a form that has a popup where I can select various options. This popup form has a save button. What I want to do is save the contents of the popup (I can do this already), close the popup (I can't do this from within the controller) and refresh the parent page. Here is what I have so far:
<%= submit_tag "Save", { :type=>'button', :onclick=>"window.opener.location.reload(true); window.close()" }%>
As you can see this refreshes the parent window and closes the popup window but it does not save the data in the popup form. Can someone help me with this problem?