Module: Pagination::LinksForHelper
- Includes:
- CurrentPageDescriptionForHelper, FirstPageLinkForHelper, LastPageLinkForHelper, NextPageLinkForHelper, PrevPageLinkForHelper
- Included in:
- ActionSet::Helpers::HelperMethods
- Defined in:
- lib/action_set/helpers/pagination/links_for_helper.rb
Instance Method Summary collapse
Methods included from LastPageLinkForHelper
#pagination_last_page_link_for
Methods included from PathForHelper
Methods included from Params::CurrentHelper
Methods included from TotalPagesForHelper
Methods included from PageSizeForHelper
Methods included from RecordSizeForHelper
Methods included from CurrentPageForHelper
Methods included from NextPageLinkForHelper
#pagination_next_page_link_for
Methods included from CurrentPageDescriptionForHelper
#pagination_current_page_description_for
Methods included from PrevPageLinkForHelper
#pagination_prev_page_link_for
Methods included from FirstPageLinkForHelper
#pagination_first_page_link_for
Instance Method Details
#pagination_links_for(set, **attributes) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/action_set/helpers/pagination/links_for_helper.rb', line 17 def pagination_links_for(set, **attributes) content_tag(:nav, **attributes.merge( class: 'pagination', 'aria-label': 'Page navigation' )) do safe_join([ pagination_first_page_link_for(set), pagination_prev_page_link_for(set), pagination_current_page_description_for(set), pagination_next_page_link_for(set), pagination_last_page_link_for(set) ]) end end |