I have an cmdbs_controller.rb inside of which i have index and defined cmdb resource route
def index
@cisearch = CmdbSearch.new
end
Also i have a cmdb_search model which is the model for search form (empty). In my index.html.erb I want to load form_for like that:
<%= form_for @cisearch, remote:true do |f| %>
...some code..
<% end %>
I have done such search for other page before, but for now i get an error:
undefined method `cmdb_searches_path'
Aucun commentaire:
Enregistrer un commentaire