项目中遇到的问题,如下。
这样一段form中的代码:
选择、输入后,在form_tag中提交后:
但是在form_remote_tag中貌似就出问题了,
似乎是remote form 在 serialize中出问题了?
有同学遇到这种问题么?
疑惑ing...
这样一段form中的代码:
<select name="group[user][][title]">
<option id="1" value="经理"/>
<option id="2" value="职工"/>
</select>
<input type="text" name="group[user][][desc]"/>
<select name="group[user][][title]">
<option id="1" value="经理"/>
<option id="2" value="职工"/>
</select>
<input type="text" name="group[user][][desc]"/>
选择、输入后,在form_tag中提交后:
'group' => {'user' => [{'title' => '1',desc => 'something'},{'title' => '2','desc' => 'something'}]}
但是在form_remote_tag中貌似就出问题了,
'group' => {'user' => [{'title' => '1'},,{'title' => '2','desc' => 'something'},{desc => 'something'}]}
似乎是remote form 在 serialize中出问题了?
有同学遇到这种问题么?
疑惑ing...