module Runcobo::Params::Form

Overview

Defines form params.

class FormParamsExample < BaseAction
  get "/params"
  form NamedTuple(id: Int64, category: String)

  call do
    sum = form[:id] + 6
    render_plain "#{sum}: #{category}"
  end
end

Direct including types

Defined in:

runcobo/actions/params/form.cr

Macro Summary

Macro Detail

macro form(code) #

[View source]