3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'app/helpers/searchify/searchify_helper.rb', line 3
def searchify(*args)
options = args.
collection = options.delete(:collection) || args.shift ||
search_url = options.delete(:search_url) || (collection, options.delete(:scopes), options.delete(:search_strategy))
select_url = options.delete(:select_url) || (options.delete(:action))
options[:class] = [:searchify].push(options[:class]).flatten.compact
options[:data] = {:'select-url' => select_url, :'search-url' => search_url}.merge(options[:data] || {})
text_field_tag(:searchify, nil, options)
end
|