module

LuckyHXML::FormHelpers

Instance methods

form_for(route : Lucky::RouteHelper, **opts, &) : Nil

Defines a form with CSRF field and method override field

Yields the route path and route HTTP method

Source
form_for(route action : Lucky::Action.class, **opts, &) : Nil

Defines a form with CSRF field and method override field

Yields the route path and route HTTP method

Source
form_method(route) : String

Returns HTTP method for forms (either GET or POST)

Source
method_override_text_field(route) : Nil

Defines a hidden text field to override HTTP method used

Source