Adding a new context and define associations in Phoenix
I'm still doing Dockyard's tutorial of Elixir and Phoenix.
So far I've progressed to building a blog
context. Now I'm trying to add a comment
context to the app. This would also allow the user to post a comment and list all the comments below a post.
This exercise is designed to teach you about how to create one-to-many relations in Phoenix.
Although the concept is easy to grasp, there are a few steps you need to take and quite a few files you need to change. ⋯