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.[]