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
-
#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.
15 16 17 18 |
# File 'lib/searchgasm/helpers/control_types/remote_select.rb', line 15 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.
9 10 11 12 |
# File 'lib/searchgasm/helpers/control_types/remote_select.rb', line 9 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, 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( = {}) 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.
21 22 23 24 |
# File 'lib/searchgasm/helpers/control_types/remote_select.rb', line 21 def remote_per_page_select( = {}) add_remote_defaults!() per_page_select() end |