An example of nested forms, nested changesets, and error handling
I have a form that allows (1) editing of an animal’s properties, (2) addition of a new “service gap” to an animal, and (3) editing existing service gaps. It took me some time to get the server-side code working. There are some special cases around error handling. If you want to do something similar, this post may be of use.
Read next ElixirMix Podcast 086: Teaching Your Team Elixir with Mike Binns