Module: Searchgasm::Helpers::ControlTypes::RemoteSelect

Defined in:
lib/searchgasm/helpers/control_types/remote_select.rb

Overview

Remote Select Control Types

These helpers use rails built in remote_function as links. They are the same thing as the Select control type, but just use rails built in remote helpers.

Instance Method Summary collapse

Instance Method Details

#remote_order_as_select(options = {}) ⇒ Object

Please see order_as_links. All options are the same and applicable here. The only difference is that instead of a group of links, this gets returned as a select form element that will perform the same function when the value is changed.



15
16
17
18
# File 'lib/searchgasm/helpers/control_types/remote_select.rb', line 15

def remote_order_as_select(options = {})
  add_remote_defaults!(options)
  order_as_select(options)
end

#remote_order_by_select(options = {}) ⇒ Object

Please see order_by_links. All options are the same and applicable here. The only difference is that instead of a group of links, this gets returned as a select form element that will perform the same function when the value is changed.



9
10
11
12
# File 'lib/searchgasm/helpers/control_types/remote_select.rb', line 9

def remote_order_by_select(options = {})
  add_remote_defaults!(options)
  order_by_select(options)
end

#remote_page_select(options = {}) ⇒ Object

Please see page_links. All options are the same and applicable here, except the :prev, :next, :first, and :last options. The only difference is that instead of a group of links, this gets returned as a select form element that will perform the same function when the value is changed.



27
28
29
30
# File 'lib/searchgasm/helpers/control_types/remote_select.rb', line 27

def remote_page_select(options = {})
  add_remote_defaults!(options)
  page_select(options)
end

#remote_per_page_select(options = {}) ⇒ Object

Please see per_page_links. All options are the same and applicable here. The only difference is that instead of a group of links, this gets returned as a select form element that will perform the same function when the value is changed.



21
22
23
24
# File 'lib/searchgasm/helpers/control_types/remote_select.rb', line 21

def remote_per_page_select(options = {})
  add_remote_defaults!(options)
  per_page_select(options)
end