madhu
AEAsh Elixir
•Created by madhu on 5/20/2025 in #support
Getting protocol Phoenix.HTML.Safe not implemented with "Ash Phoenix"
Protocol.UndefinedError at GET /profile
protocol Phoenix.HTML.Safe not implemented for type AshPhoenix.Form (a struct)
Got value:
#AshPhoenix.Form<
resource: ObanDashboard.UserProfile,
action: :create,
type: :create,
params: %{
user_id: "3b06a43b-d8af-4500-b5b9-fcbcb15168f3",
firstname: "",
lastname: "",
timezone: "Etc/UTC"
},
source: #Ash.Changeset<
domain: ObanDashboard.Domain,
action_type: :create,
action: :create,
attributes: %{timezone: "Etc/UTC"},
relationships: %{},
errors: [],
data: %ObanDashboard.UserProfile{
user: #Ash.NotLoaded<:relationship, field: :user>,
meta: #Ecto.Schema.Metadata<:built, "user_profiles">,
id: nil,
user_id: nil,
firstname: nil,
lastname: nil,
timezone: "Etc/UTC",
inserted_at: nil,
updated_at: nil
},
valid?: true
>,
name: "user_profile",
data: nil,
form_keys: [],
forms: %{},
domain: ObanDashboard.Domain,
method: "post",
submit_errors: nil,
id: "user_profile",
transform_errors: nil,
original_data: nil,
transform_params: nil,
prepare_params: nil,
prepare_source: nil,
raw_params: %{
user_id: "3b06a43b-d8af-4500-b5b9-fcbcb15168f3",
firstname: "",
lastname: "",
timezone: "Etc/UTC"
},
warn_on_unhandled_errors?: true,
any_removed?: false,
added?: false,
changed?: false,
touched_forms: MapSet.new([:user_id, :firstname, :lastname, :timezone]),
valid?: true,
errors: nil,
submitted_once?: false,
just_submitted?: false,
...
>
43 replies
AEAsh Elixir
•Created by madhu on 5/15/2025 in #showcase
Announcing Opensource Ash DataLayer for Opensearch

3 replies