def filter_form_for(filter, url = url_for)
      content_tag :div, class: "filters" do
        form_for filter, namespace: filter_form_namespace, builder: FilterFormBuilder, url: url, as: :filter, method: :get, remote: true, html: { id: nil } do |form|
          yield form
        end
      end
    end
def filter_form_for(filter, url = url_for)
      content_tag :div, class: "filters" do
        form_for filter, namespace: filter_form_namespace, builder: FilterFormBuilder, url: url, as: :filter, method: :get, remote: true, html: { id: nil } do |form|
          yield form
        end
      end
    end
This method wraps everything in a div with class filters and calls
 the form_for helper with a custom builder

 filter - A filter object
 url    - A String with the URL to post the from. Self URL by default.
 block  - A block to be called with the form builder

 Returns the filter resource form wrapped in a div