3
4
5
6
7
8
9
10
11
12
13
14
|
# File 'app/helpers/riveter/query_filter_form_helper.rb', line 3
def query_filter_form_for(query_filter, options={}, &block)
query_filter_class_name = query_filter.class.name.underscore
options = {
:as => query_filter_class_name.gsub(/_query_filter$/, ''),
:url => query_filter_class_name.gsub(/_query_filter$/, ''),
:method => :get
}.merge(options)
respond_to?(:simple_form_for) ?
simple_form_for(query_filter, options, &block) :
form_for(query_filter, options, &block)
end
|