Module: Searchgasm::Helpers::ControlTypes::RemoteSelect
- Defined in:
- lib/searchgasm/helpers/control_types/remote_select.rb
Instance Method Summary collapse
-
#remote_order_as_select(options = {}) ⇒ Object
Please see order_as_links.
-
#remote_order_by_select(options = {}) ⇒ Object
Please see order_by_links.
-
#remote_page_select(options = {}) ⇒ Object
Please see page_links.
-
#remote_per_page_select(options = {}) ⇒ Object
Please see per_page_links.
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.
12 13 14 15 |
# File 'lib/searchgasm/helpers/control_types/remote_select.rb', line 12 def remote_order_as_select( = {}) add_remote_defaults!() order_as_select() 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.
6 7 8 9 |
# File 'lib/searchgasm/helpers/control_types/remote_select.rb', line 6 def remote_order_by_select( = {}) add_remote_defaults!() order_by_select() end |
#remote_page_select(options = {}) ⇒ Object
Please see page_links. All options are the same and applicable here, excep 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.
24 25 26 27 |
# File 'lib/searchgasm/helpers/control_types/remote_select.rb', line 24 def remote_page_select( = {}) add_remote_defaults!() page_select() 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.
18 19 20 21 |
# File 'lib/searchgasm/helpers/control_types/remote_select.rb', line 18 def remote_per_page_select( = {}) add_remote_defaults!() per_page_select() end |