Rails 3.2.8. Upgrade checkboxes from Rails 1.x.x to 3.2.8

痞子三分冷 提交于 2019-12-25 08:43:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!