module

ActionView::Helpers::UrlHelper

Inherits ActionView::Helpers::TagHelper

Instance methods

button_to(name : String, url : String, **opts) : SafeString
Source
button_to(url : String, *, method : String | Nil = nil, **opts, &) : SafeString

button_to "/x" do ... end — html opts go to the submit <button> (type="submit" appended after user opts, as in Rails); the form tag keeps class → method → action insertion order. method: get switches the form method and drops the _method input.

Source
mail_to(email : String, name : String | Nil = nil, **opts) : SafeString
Source