You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many applications you have some kind of belongs-to or many-to-many associations.
Like a blog post which has many categories, and each category has many blog posts.
It is straightforward to figure out how to make a <.input type="select"> for an Enum,
such as
In many applications you have some kind of belongs-to or many-to-many associations.
Like a blog post which has many categories, and each category has many blog posts.
It is straightforward to figure out how to make a
<.input type="select">
for an Enum,such as
The same approach fails when trying to add a similar dropdown field to select the categories
with
** (Protocol.UndefinedError) protocol Phoenix.HTML.Safe not implemented for %Category{...
Since this is a common pattern, I would suggest to add some paragraph into
guides/client/form-bindings.md
to explain the prefered way to solve this.The text was updated successfully, but these errors were encountered: