我有一张搜索卡来搜索一些个人资料。出于某种原因,一个参数显示在卡片外面,如下所示:
即使我更换了Major和Job类型的位置,也会显示Major之外的Major。我正在使用物化框架。这个问题的原因是什么?
我的代码显示:
<div class="col s12 m6 l3">
<div class="card">
<div class="card-content center">
<div style="margin-top: -20px; width: 113%; height: 40px; background-color: #0288d1;margin-left: -21px;">
<span class="card-title2">Advanced search</span>
</div>
<%= simple_form_for @search do |s| %>
<%= s.input :keyword, label: 'Name' %>
<label>College</label>
<%= s.select :college, options_for_select(@college), :include_blank => true %>
<%= s.input :min_gpa, label: "Minimum GPA" %>
<label>Major</label>
<%= s.select :major, options_for_select(@major), :include_blank => true %>
<label>Job type</label>
<%= s.select :level, options_for_select(@level), :include_blank => true %>
<%= s.button :submit, "Search" %>
<% end %>
</div>
</div>
</div>
答案 0 :(得分:0)
<%= s.submit 'Search' %>