Module: RailsBootstrapHelpers::Helpers::UrlHelper

Defined in:
lib/rails-bootstrap-helpers/helpers/url_helper.rb

Instance Method Summary collapse

Instance Method Details

Renders a Jasny Bootstrap action link. This method behaves just as “link_to” but will render a Jasny Bootstrap action link instead of a regular link. In addition to the options “link_to” handles, this method also handles the following options:

Parameters:

  • options (Hash)

    a customizable set of options



8
9
10
# File 'lib/rails-bootstrap-helpers/helpers/url_helper.rb', line 8

def action_link_to (*args, &block)
  RailsBootstrapHelpers::Renderers::ActionLinkRenderer.new(self, *args, &block).render
end

Renders a Jasny Bootstrap row link. This method behaves just as “link_to” but will render a Jasny Bootstrap row link instead of a regular link.



14
15
16
# File 'lib/rails-bootstrap-helpers/helpers/url_helper.rb', line 14

def row_link_to (*args, &block)
  RailsBootstrapHelpers::Renderers::RowLinkRenderer.new(self, *args, &block).render
end