module LuckyHXML::FormHelpers
Direct including types
Defined in:
lucky_hxml/form_helpers.crInstance Method Summary
-
#form_for(route : Lucky::RouteHelper, **opts, &) : Nil
Defines a form with CSRF field and method override field
-
#form_for(route action : Lucky::Action.class, **opts, &) : Nil
Defines a form with CSRF field and method override field
-
#form_method(route) : String
Returns HTTP method for forms (either GET or POST)
-
#method_override_text_field(route) : Nil
Defines a hidden text field to override HTTP method used
Instance Method Detail
def 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
Defines a form with CSRF field and method override field
Yields the route path and route HTTP method
def method_override_text_field(route) : Nil
#
Defines a hidden text field to override HTTP method used