Topic: Trouble with filling form

I have form with some input fields, and I use javascript to fill that fields. It working, but in server side (ruby on rails) I read that fields and they are empty.
client for:
<form id="addFilterForm" action="/bug/addFilter" method="post">
<input id="filter_name" name="filter[name]" type="hidden" value="" />
<input id="filter_status_id" name="filter[status_id]" type="hidden" value="" />
</form>

on server side I use @filter = params[:filter] to read hashtable.

Result:
{"name"=>"", "status_id"=>""}

whats wrong?

Re: Trouble with filling form

I would assume this is a problem with the JavaScript.  How are you sure the fields are being populated?

I would change them to text fields for debugging, just so you can see whats going on.