cro
AEAsh Elixir
•Created by cro on 9/14/2023 in #support
Unexpected token during mix ash_phoenix.gen.live
I'm creating a toy application for tracking weight lifting workouts. I have a
WeightType
resource that I want to create a LiveView for. When running the Ash Phoenix LiveView generator I'm getting the following error and having trouble tracking down where it comes from so I can fix it. Help?
9 replies
AEAsh Elixir
•Created by cro on 4/9/2023 in #support
Where is the right place to perform transformation on form data before database insert?
Greetings,
I have a form that will contain plain text in AsciiDoc format. I would like to convert the AsciiDoc to HTML and store it alongside the original in the database. I'm having a hard time understanding where the best place to do this is. I thought it would be a good candidate for an Ash Calculation, but the examples don't seem to deal with this kind of thing, so I wondered if it was an anti-pattern. In the spirit of "try the simplest thing that will work", I could just do it in the
handle_event
s for creating and updating the resources. Is that a decent approach? Am I overthinking it?7 replies
AEAsh Elixir
•Created by cro on 3/13/2023 in #support
Getting Started with Ash and Phoenix Blog question
In the ash_phoenix tutorial where it talks about creating the Registry, shouldn't
be
?
And then a little further down the page it says that it's convention to place resources in the
resources
directory, but the filenames and defmodule statements below still have post.ex
in the blog/
directory.5 replies
AEAsh Elixir
•Created by cro on 2/21/2023 in #support
How can I add fields to the default AshAuthentication signup form?
I see which modules are being called but I don't know how to add new fields to registration (first name, last name, cell #, etc.). Are there docs for this and I just missed them?
7 replies
AEAsh Elixir
•Created by cro on 2/6/2023 in #support
Adding elixir_sense to mix.exs seems to break autocomplete
Hi folks,
I setup a new Ash project tonight, following the documentation for AshAuthentication. I added
elixir_sense
to mix.exs
but this seems to be breaking autocomplete and other LSP functions. In case there is some difference between nvim and VS Code I tried both, but have the same issue. In the LSP logfile that nvim generates I see:
Ideas on how to overcome this? Or should I open an issue over in the Github Elixir Sense repo?11 replies