I have a form tag originaly generated using form_remote_tag. After a
lot of bewildered testing to see why its values arent being passed on,
I realised when looking at the html output that the form has a closing
tag on the end (before the form fields).
So I thought maybe its a rails bug, and copied and pasted the generated
version back into my rhtml file, commenting out the original helper
call. Still the same. Tried reordering things in the page. No joy. I
ran a test on another form in the page to check I hadnt lost the plot,
and that worked fine.
Any help much appreciated!
Here is my rhtml
code:_____________________________________________________
# :url => { :action => :filter_render })
%>
<tr>
<td>Date</td>
<td>
<input type="hidden" id="hiddenval" name="hiddenval"
value=“test”/>
All
Issued
Due
Received
…
<%= submit_tag “Show date range” %>
and the generated
code:____________________________________________________
<form action="/invoice/filter_render" method="post"
onsubmit=“Element.show(‘spinner’); new
Ajax.Updater(‘invoice_list_tbody’, ‘/invoice/filter_render’,
{asynchronous:true, evalScripts:true,
onSuccess:function(request){Element.hide(‘spinner’)},
parameters:Form.serialize(this)}); return false;”>
<tr>
<td>Date</td>
<td>
<input id="hiddenval" name="hiddenval" value="test"
type=“hidden”>
All
Issued
Due
Received
<td>From</td>
<td>
<input name="f_date_a" id="f_date_a"
type=“text”>…
<td>To</td>
<td><input name="f_date_b" id="f_date_b" type="text"><button
type=“reset” id=“f_trigger_b”>…
<tr>
<td></td>
<td>