Module: Worthwhile::SearchPathsHelper

Included in:
MainAppHelpers
Defined in:
app/helpers/worthwhile/search_paths_helper.rb

Instance Method Summary collapse

Instance Method Details

#search_path_for_my_collections(opts = {}) ⇒ Object



8
9
10
11
# File 'app/helpers/worthwhile/search_paths_helper.rb', line 8

def search_path_for_my_collections(opts={})
  params_for_my_collections = {:'f[generic_type_sim][]'=>'Collection', works: 'mine'}
  main_app.catalog_index_path(params_for_my_collections.merge(opts))
end

#search_path_for_my_works(opts = {}) ⇒ Object



3
4
5
6
# File 'app/helpers/worthwhile/search_paths_helper.rb', line 3

def search_path_for_my_works(opts={})
  params_for_my_works = {:'f[generic_type_sim][]'=>'Work', works: 'mine'}
  main_app.catalog_index_path(params_for_my_works.merge(opts))
end