问题
Just was checking this episode by Ryan Bates and it seems that Rails 3.2.x has different setup.
Seems that check_box_tag
requires different attributes other than Ryan puts in there. AS it writes back unexpected kEND...
to <%= check_box_tag "task_ids[]", task.id %>
Any help appreciated
回答1:
Your error is unrelated to your use of check_box_tag
.
"unexpected kEND
" indicates an unexpected end-of-file, meaning you've opened a block or other nested structure somewhere and failed to close it. Probably a do
or an if
with no matching end
.
来源:https://stackoverflow.com/questions/12584343/rails-3-2-8-upgrade-checkboxes-from-rails-1-x-x-to-3-2-8