Module: NeatPages::Helpers
- Defined in:
- lib/neat_pages/helpers.rb
Overview
************************************************************************************* Insert a bunch of helper methods in the ActionView::Base of a Rails project. *************************************************************************************
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
5 6 7 8 9 |
# File 'lib/neat_pages/helpers.rb', line 5 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)
12 13 14 |
# File 'lib/neat_pages/helpers.rb', line 12 def (={}) NeatPages::Helpers::Navigation.new(pagination, request).generate end |