select标记中的参数错误数量错误

时间:2017-03-03 15:35:41

标签: ruby-on-rails

我在视图中有这个选择标记代码 Task <%= select_tag :timesheet_task_id, options_from_collection_for_select(@timesheet_tasks, 'id', 'name', @timesheet_task_id), + grouped_options_for_select(grouped_task_options, @timesheet_task_id), prompt: '<All Tasks>' %>

我收到此错误 “错误的论点数量(给定4,预期1..3)” 以下代码显示在错误中 module FormTagHelper **def select_tag_with_non_empty_blank_option(name, option_tags = nil, options = {})** if options.delete(:include_blank) options[:prompt] = '&nbsp;'.html_safe end 有人可以帮我这个吗?我想知道select标签语句有什么问题。

0 个答案:

没有答案