我正在尝试通过单击按钮表单来显示 div。我知道这是错误的,只是不确定要写什么,我应该把它写在我的 javascript 页面上还是仅仅在视图中。
<%= submit_tag "Next Step", :type => 'button', :onclick => '$('#devregothinf').hide();' %>
<div id="devregothinf">
<h2>General Information</h2>
<%= render 'geninfor_step', form: f %>
</div>
我收到如下错误
syntax error, unexpected $end, expecting ')'