Credo v1.1.0 released (Credo Plugins are here!) Pattern Matching is FP's Polymorphism Affordance

How do you update relations in Phoenix forms?

In this episode, I answered a learner’s question about how to create and update has_one and belongs_to associations with Phoenix forms.

The short answer is:

use a <%= inputs_for f, :your_association, fn f2 -> %> block inside your form and put the labels and inputs for the associated inside of that.

https://alchemist.camp/episodes/belongs-to-has-one-forms

Shameless plug: Check out @elixirstatus' other community project:

Credo, a new static code analysis tool that acts as a code linter, but also focusses on teaching coding practices and code consistency.