I\'m using fantastic MetaSearch by Ernie, but I\'m having an annoying issue.
In my application.html.erb I have an search field, just like this one on top of StackOve
You would get this error if @search is set to nil. Ensure that this is not the case.
@search
nil
Try this syntax:
<%= form_for(:object) do |obj| %>
In my case I was using the view to collect nested attributes from user inputs but this syntax also gets around this error message in other contexts.