formex v0.3.2 Formex.Builder
The form builder to be used in a controller. Imported by Formex.Controller
.
Example:
form = create_form(App.ArticleType, %Article{})
render(conn, "new.html", form: form)
Summary
Functions
Creates a form struct
Functions
Creates a form struct.
Arguments
type
- the module that implementsFormex.Type
behaviour, for example:App.ArticleType
struct
- the struct that will be used inEcto.Changeset.cast/3
, for example:%App.Article{}
params
- the parameters that will be used inEcto.Changeset.cast/3