Using the vue.js front end I had errors updating articles:
https://github.com/gothinkster/elixir-phoenix-realworld-example-app/blob/master/lib/real_world_web/controllers/article_controller.ex#L66
def update(conn, %{"id" => slug, "article" => article_params}, user) do
article =
slug
|> Blog.get_article_by_slug!()
|> Repo.preload([:author, :favorites])
|> Blog.load_favorite(user)
with {:ok, %Article{} = article} <- Blog.update_article(article, article_params) do
render(conn, "show.json", article: article)
end
end
Modified to use slug to get the article.