This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Last Three Year's Trending Top

agonzalezro
Hi :wave: I had this piece of (working) code: items = products |> Enum.map(fn product -> params = %{produ...
New
jason.o
This code is intended to validate a user typed DELETE before deleting their account, but it doesn’t work because add_error isn’t adding t...
New
maqnius
Hey there :slight_smile: I was trying to adapt the Contexts Article using the Form Struct and to_form. I ended up having problems to re...
New
arcanemachine
In Django, there is the concept of “non_field_errors”, which exists when a form field has an error that is not specific to any model fiel...
New
Pistrie
The different for_* actions require a specific action atom (i.e. |> for_create(:create, opts) ), so what’s the point of these explicit...
New
mogadget
I have this schemaless changeset fields data = %{} types = %{name: :string, email: :string, age: :integer} params = %{name: "Callum", e...
New
lorenzomar
Hi there! I’m in the situation where I’m receiving a struct which is also an Ecto Schema (wich embedded_one/many other schemas). To be m...
New
kamaroly
I have observed that after_action hook silently gets ignored when a change is atomic but when I set require_atomic? to false it triggers...
New
Fl4m3Ph03n1x
Background I am trying to create a schema with some basic validations. However, when I spin up my app, it looks like the validations are ...
New
CessK
Hello Everyone, I am still quite new to the Phoenix framework and I am struggling with the has_many relationship using ecto and how to r...
New
Liam_or
Hello everyone :slight_smile: I’m wondering what the accepted approach is for validating values in the new Scope struct. When I run phx....
New

Trending Over Three Years Top

hawkyre
I want to create some kind of procedure to programmatically transform a changeset’s errors into my own error codes so that I can display ...
New
boiserunner
I’m stumped. I have a LiveView form tied to a Changeset (rather than a schema) like so: ~H""" <.form as={:form} for={@changeset} :l...
New
alexsysm
The associated data may be given in different formats: * a map or a keyword list representing changes to be applied to the associated ...
New
acke
Changeset struct undefined Hello everbody. I’m just getting started learning Phoenix and I’m trying to create a basic Github clone as a l...
New
mattmartian
Hi there! Within my form changeset there is a field that holds more than 700 records, I would paginate straight from the DB however I ne...
New
enkr1
Hi community, I am doing a test case and I have an associative table with FKs user_id and role_id. When I tried to insert with the repea...
New
elt547
What’s the difference in behaviour of required between these uses? cast_assoc(:author, required: true) # vs this validate_required(:auth...
New
enkr1
I have a map field which stores my mobile_json and I used inputs_for to display the embedded_schema’s fields which looks like: <%= in...
New
MatijaL
Hi, I’m trying to create a function for the last couple of hours with no luck so I could really use your help. So, it’s a Phoenix app a...
New
MatijaL
Hello, I’m building a small app for learning purposes where I have users and those users can create projects. Projects can have differen...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement