这是我的表单视图代码:
<div class="row">
<%= semantic_form_for @new_athlete_sport, :remote => true, :html => { :class => "new_sport", :"data-type" => 'json', :id => '' } do |f| %>
<%= f.label "Sport" %>
<%= f.select :sport_id, Sport.all.collect { |sp| [sp.name, sp.id] }, {}, { class: "chosen", id: "" } %>
<br />
<%= f.submit %>
<% end %>
</div>
出于某种原因,<form>
标签没有出现在 DOM 中,但所有其他字段都出现了..