0
我想使用meta_search
寶石。我有這個在我看來:導軌形式f.select錯誤
<%= 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.[]