kingdomcoder
kingdomcoder
AEAsh Elixir
Created by kingdomcoder on 6/1/2023 in #support
AshAuthentication: Set return_to from LiveView redirect to login page
As said in the title, where/how do I set the return_to parameter in AshAuthentication? If it's to be in the session, how do I set that in a liveview? Code snippets will be helpful.
4 replies
AEAsh Elixir
Created by kingdomcoder on 3/30/2023 in #support
Ash Phoenix Form potential bug
Hey
AshPhoenix.Form.validate(socket.assigns.form, params)
|> AshPhoenix.Form.submit()
AshPhoenix.Form.validate(socket.assigns.form, params)
|> AshPhoenix.Form.submit()
produces
** (KeyError) key :options not found in: #AshPhoenix.Form
** (KeyError) key :options not found in: #AshPhoenix.Form
However, this doesn't:
validated_form = AshPhoenix.Form.validate(socket.assigns.form, params)

validated_form.source
|> AshPhoenix.Form.submit()
validated_form = AshPhoenix.Form.validate(socket.assigns.form, params)

validated_form.source
|> AshPhoenix.Form.submit()
Is this expected?
4 replies
AEAsh Elixir
Created by kingdomcoder on 2/4/2023 in #support
Ash Resources with Ecto Multi
I'm using commanded, an event sourcing library for a learning project I'm on. Making read model projections in commanded work via a function that returns an ecto multi. How can I use Ash resources with Ecto multis?
8 replies