Module: Searchgasm::Helpers::ControlTypes::RemoteLinks
- Defined in:
- lib/searchgasm/helpers/control_types/remote_links.rb
Overview
Remote Links Control Types
These helpers use rails built in remote_function as links. They are the same thing as the Links control type, but just use rails built in remote helpers.
Instance Method Summary collapse
-
#remote_order_as_links(options = {}) ⇒ Object
Same as order_as_links, but uses link_to_remote instead of remote.
-
#remote_order_by_links(options = {}) ⇒ Object
Same as order_by_links, but uses link_to_remote instead of remote.
-
#remote_page_links(options = {}) ⇒ Object
Same as page_links, but uses link_to_remote instead of remote.
-
#remote_per_page_links(options = {}) ⇒ Object
Same as per_page_links, but uses link_to_remote instead of remote.
Instance Method Details
#remote_order_as_links(options = {}) ⇒ Object
Same as order_as_links, but uses link_to_remote instead of remote.
Examples
remote_order_as_links
remote_order_as_links(:remote => {:update => "users"})
Options
Please look at remote_order_as_link and order_as_links. All options there are applicable here. This is just a wrapper method for those 2 methods.
33 34 35 36 |
# File 'lib/searchgasm/helpers/control_types/remote_links.rb', line 33 def remote_order_as_links( = {}) add_remote_defaults!() order_as_link() end |
#remote_order_by_links(options = {}) ⇒ Object
Same as order_by_links, but uses link_to_remote instead of remote.
Examples
remote_order_by_links
remote_order_by_links(:remote => {:update => "users"})
Options
Please look at remote_order_by_link and order_by_links. All options there are applicable here. This is just a wrapper method for those 2 methods.
18 19 20 21 |
# File 'lib/searchgasm/helpers/control_types/remote_links.rb', line 18 def remote_order_by_links( = {}) add_remote_defaults!() order_by_links() end |
#remote_page_links(options = {}) ⇒ Object
Same as page_links, but uses link_to_remote instead of remote.
Examples
remote_page_links
remote_page_links(:remote => {:update => "users"})
Options
Please look at remote_page_link and page_links. All options there are applicable here. This is just a wrapper method for those 2 methods.
63 64 65 66 |
# File 'lib/searchgasm/helpers/control_types/remote_links.rb', line 63 def remote_page_links( = {}) add_remote_defaults!() page_links() end |
#remote_per_page_links(options = {}) ⇒ Object
Same as per_page_links, but uses link_to_remote instead of remote.
Examples
remote_per_page_links
remote_per_page_links(:remote => {:update => "users"})
Options
Please look at remote_per_page_link and per_page_links. All options there are applicable here. This is just a wrapper method for those 2 methods.
48 49 50 51 |
# File 'lib/searchgasm/helpers/control_types/remote_links.rb', line 48 def remote_per_page_links( = {}) add_remote_defaults!() per_page_links() end |