Permalink
Browse files

Use the index on hidden field

  • Loading branch information...
1 parent 3448ea0 commit e0fe8dd79a8a495d31829b53e1ab197ba61c986d @rafaelfranca rafaelfranca committed Apr 14, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/test/template/form_helper_test.rb
@@ -1427,7 +1427,7 @@ def post.tag_ids; [1]; end
expected = whole_form("/posts", "new_post", "new_post") do
"<input checked='checked' id='post_1_tag_ids_1' name='post[1][tag_ids][]' type='checkbox' value='1' />" +
"<label for='post_1_tag_ids_1'>Tag 1</label>" +
- "<input name='post[tag_ids][]' type='hidden' value='' />"
+ "<input name='post[1][tag_ids][]' type='hidden' value='' />"
end
assert_dom_equal expected, output_buffer

0 comments on commit e0fe8dd

Please sign in to comment.