Module: NeatPages::Helpers
- Defined in:
- lib/neat_pages/helpers.rb
Defined Under Namespace
Classes: Builder, Navigation, Status
Instance Method Summary collapse
- #neat_pages_ajax_items(partial_path, options = {}) ⇒ Object
-
#neat_pages_navigation(options = {}) ⇒ Object
DEPRECATED : The options parameter is deprecated.
- #neat_pages_status ⇒ Object
Instance Method Details
#neat_pages_ajax_items(partial_path, options = {}) ⇒ Object
6 7 8 9 10 |
# File 'lib/neat_pages/helpers.rb', line 6 def neat_pages_ajax_items(partial_path, ={}) = { wrapper: :div }.merge() ("<#{[:wrapper]} id=\"neat-pages-ajax-wrapper\" class=\"first-load\">" + render(partial_path, ) + "</#{[:wrapper]}>").html_safe end |
#neat_pages_navigation(options = {}) ⇒ Object
DEPRECATED : The options parameter is deprecated. I left it here for backward compatibility. (2013-11-20)
13 14 15 |
# File 'lib/neat_pages/helpers.rb', line 13 def (={}) NeatPages::Helpers::Navigation.new(pagination, request).generate end |