Skip to content
Browse files

Use the index on hidden field

  • Loading branch information...
1 parent c07bfd3 commit 5f768ea4cef661c160c31958bb31982877908342 @rafaelfranca rafaelfranca committed Apr 14, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionview/test/template/form_helper_test.rb
View
2 actionview/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 5f768ea

Please sign in to comment.
Something went wrong with that request. Please try again.