mrsnow
Hey.
I have a simple resource with just the default actions :read, :create, :update and added ash_admin to the project. But i can’t get ash_admin to work to generate the default forms.
This is the resource:
defmodule Elephouse.TodoList.Todo do
use Ash.Resource,
domain: Elephouse.TodoList,
data_layer: AshPostgres.DataLayer
postgres do
table "todos"
repo Elephouse.Repo
end
actions do
defaults [:read, :create, :update]
end
attributes do
uuid_v7_primary_key :id
create_timestamp :created_at
update_timestamp :updated_at
attribute :title, :string do
allow_nil? false
end
attribute :due_at, :naive_datetime
attribute :completed, :boolean do
default :false
end
attribute :completed_at, :naive_datetime
attribute :hashes, :string
end
relationships do
belongs_to :owner, Elephouse.Accounts.User
end
end
My used deps:
defp deps do
[
{:phoenix, "~> 1.7.14"},
{:phoenix_ecto, "~> 4.5"},
{:ecto_sql, "~> 3.10"},
{:postgrex, ">= 0.0.0"},
{:phoenix_html, "~> 4.1"},
{:phoenix_live_reload, "~> 1.2", only: :dev},
# TODO bump on release to {:phoenix_live_view, "~> 1.0.0"},
{:phoenix_live_view, "~> 1.0.0-rc.1", override: true},
{:floki, ">= 0.30.0", only: :test},
{:phoenix_live_dashboard, "~> 0.8.3"},
{:esbuild, "~> 0.8", runtime: Mix.env() == :dev},
{:tailwind, "~> 0.2", runtime: Mix.env() == :dev},
{:heroicons,
github: "tailwindlabs/heroicons",
tag: "v2.1.1",
sparse: "optimized",
app: false,
compile: false,
depth: 1},
{:swoosh, "~> 1.5"},
{:finch, "~> 0.13"},
{:telemetry_metrics, "~> 1.0"},
{:telemetry_poller, "~> 1.0"},
{:gettext, "~> 0.20"},
{:jason, "~> 1.2"},
{:dns_cluster, "~> 0.1.1"},
{:bandit, "~> 1.5"},
{:ash, "~> 3.0"},
{:ash_authentication, "~> 4.0"},
{:ash_authentication_phoenix, "~> 2.0"},
{:ash_postgres, "~> 2.0"},
{:ash_phoenix, "~> 2.0"},
{:picosat_elixir, "~> 0.2.3"},
{:ecto_psql_extras, "~> 0.8"},
{:ash_admin, "~> 0.11.3"}
]
end
Anyone a suggestion? Every help would be nice. Thanks.
Trending in Questions
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
Anyone here using Honeybadger?
My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of
Bandit.HTTPError...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #ai
- #elixirconf-us
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 8- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
netProphET
@mrsnow In your Domain Elephouse.TodoList did you:
mrsnow
@netProphET Yes i did that:
I’m seeing the admin interface and seeing the domains and resources in the admin interface but i don’t get generated forms from the default actions.
zachdaniel
Can you show a screenshot/video of what your admin app looks like? If you click into the Todo resource, you should see Create/Read buttons. If you click into an individual row when looking at a read action, you should see an update button.
mrsnow
Create Todo:
Update Todo:
I assumed that there will be generated forms with the default actions.
Maybe my assumption is wrong?
zachdaniel
Ah, so the forms are based on the inputs your actions accept. By default, that is none.
mrsnow
Thank you. So my assumption was not correct. Thanks for clarification.
trentjones21
Would it be reasonable to expect this
to generate forms with all inputs rendered? That is the behavior I was expecting, which lead me to this thread. In practice it renders no inputs in the form.
zachdaniel
That will generate inputs for all attributes marked with
public?: true.