2017-07-18 41 views
0

我有一张搜索卡可以搜索某些配置文件。出于某种原因,卡片中显示的参数如下所示: enter image description here显示卡外的参数

即使我交换Major和Job类型的点,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

可以尝试呢?

<%= s.submit 'Search' %> 
+0

它更改提交按钮,不影响其他任何东西 – LizzyTheLearner