module LuckyHXML::FormHelpers

Direct including types

Defined in:

lucky_hxml/form_helpers.cr

Instance Method Summary

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


[View source]
def 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


[View source]
def form_method(route) : String #

Returns HTTP method for forms (either GET or POST)


[View source]
def method_override_text_field(route) : Nil #

Defines a hidden text field to override HTTP method used


[View source]