Ash FrameworkAF
Ash Framework3y ago
107 replies
michaelst

Can't add form with auto forms

I'm getting this error when setting up with auto forms.
Attempted to add a form at path: [:budget_allocations], but no create_action was configured.

here is my action
update :user_update do
  argument :budget_allocations, {:array, :map}
  change manage_relationship(:budget_allocations, type: :append_and_remove)
end


and the form
form =
  transaction
  |> AshPhoenix.Form.for_update(:user_update,
    api: QueryDesk.Api,
    forms: [auto?: true]
  )
  |> to_form()
  |> AshPhoenix.Form.add_form([:budget_allocations])
Was this page helpful?