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

Instance Method Details

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(options = {})
  add_remote_defaults!(options)
  order_as_link(options)
end

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(options = {})
  add_remote_defaults!(options)
  order_by_links(options)
end

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(options = {})
  add_remote_defaults!(options)
  page_links(options)
end

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(options = {})
  add_remote_defaults!(options)
  per_page_links(options)
end