module JasperHelpers::Links
Direct including types
Defined in:
jasper_helpers/links.crInstance Method Summary
- #button_to(body : String, url : String, method : Symbol = :post)
- #button_to(body : String, url : String, method : Symbol = :post, &)
- #button_to(body : String, url : String, method : Symbol = :post, **options : Object)
- #button_to(body : String, url : String, method : Symbol = :post, **options : Object, &)
-
#link_to(body : String, url : String)
Creates an anchor,
<a />, tag rendering thebodyparameter as content. -
#link_to(body : String, url : String, **options : Object)
Creates an anchor,
<a />, tag rendering thebodyparameter as content. -
#link_to(url : String, &)
Creates an anchor,
<a />, tag with thehrefattribute set to theurlparameter provided. -
#link_to(url : String, **options : Object, &)
Creates an anchor,
<a />, tag with thehrefattribute set to theurlparameter provided.
Instance Method Detail
Creates an anchor,<a />, tag rendering the body parameter as content. The anchor tag's href will be set to the url parameter provided. The options parameter is be used to provide additional configurations or attributes for the tag.
Example:
link_to("Go to GitHub", "http://github.com", { id: "github-url" })
Produces:
<a href="http://github.com" id="github-url">Go to GitHub</a>
With the exception of not accepting tag options
Creates an anchor,<a />, tag rendering the body parameter as content. The anchor tag's href will be set to the url parameter provided. The options parameter is be used to provide additional configurations or attributes for the tag.
Example:
link_to("Go to GitHub", "http://github.com", { id: "github-url" })
Produces:
<a href="http://github.com" id="github-url">Go to GitHub</a>
Creates an anchor,<a />, tag with the href attribute set to the url parameter provided.
The options parameter can be used to provide additional configurations or attributes for the tag.
Example:
link_to("http://github.com", { id: "github-url" })
Produces:
<a href="http://github.com" id="github-url"/>
With the exception of not accepting tag options
Creates an anchor,<a />, tag with the href attribute set to the url parameter provided.
The options parameter can be used to provide additional configurations or attributes for the tag.
Example:
link_to("http://github.com", { id: "github-url" })
Produces:
<a href="http://github.com" id="github-url"/>