class BootstrapPager::Helpers::Tag
A tag stands for an HTML tag inside the paginator. Basically, a tag has its own partial template file, so every tag can be rendered into String using its partial template.
The template file should be placed in your app/views/bootstrap_pager/ directory with underscored class name (besides the “Tag” class. Tag
is an abstract class, so _tag partial is not needed).
e.g.) PrevLink -> app/views/bootstrap_pager/_prev_link.html.erb
When no matching template were found in your app, the engine's pre installed template will be used.
e.g.) Paginator -> $GEM_HOME/bootstrap_pager-x.x.x/app/views/bootstrap_pager/_paginator.html.erb
Public Instance Methods
page_url_for(page)
click to toggle source
# File lib/bootstrap_pager/helpers/tags.rb, line 28 def page_url_for(page) opts = @params.merge(@param_name => (page <= 1 ? nil : page)) opts.permit! (@engine_namespace || @template).url_for opts end