我想使用meta_search
宝石。我认为这是:
<%= f.select :project_type_id_in,
raw("<option value=''>-- Proje Types --</option>" +
options_from_collection_for_select(ProjectType.all, :id, :name,
params[:search][:project_type_id_in].to_i )) %>
但是当我打电话给控制器时,我得到了这个错误:
You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.[]