基本上我想从下拉菜单中选择一个选项后立即转到操作/路径(new_budget_path)。我不知道如何解决它以及如何订购这些陈述。
= collection_select(:budget, :id, Member.list_available_budgets,:title, :title,
options= {prompt: t('view.member.select_budget_box')},
html_options= {onchange: remote_function(url: new_budget_path)})
我收到以下错误消息:
undefined method `remote_function' for #<#<Class:0x007ff5fc6fa0c8>:0x007ff602bba698>
有人可以帮忙吗?