Astarte.FlowWeb.ChangesetView (astarte_flow v0.1.0)
Link to this section Summary
Functions
The resource name, as an atom, for this view
Renders the given template locally.
Callback invoked when no template is found. By default it raises but can be customized to render a particular template.
Traverses and translates changeset errors.
Link to this section Functions
Link to this function
__resource__()
The resource name, as an atom, for this view
Link to this function
render(template, assigns \\ %{})
Renders the given template locally.
Link to this function
template_not_found(template, assigns)
@spec template_not_found(Phoenix.Template.name(), map()) :: no_return()
Callback invoked when no template is found. By default it raises but can be customized to render a particular template.
Link to this function
translate_errors(changeset)
Traverses and translates changeset errors.
See Ecto.Changeset.traverse_errors/2
and
Astarte.FlowWeb.ErrorHelpers.translate_error/1
for more details.