We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6165d4e commit 7fc3ba9Copy full SHA for 7fc3ba9
priv/templates/common/phx.gen.html/controller.ex
@@ -11,7 +11,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
11
case <%= inspect context.alias %>.paginate_<%= schema.plural %>(params) do
12
{:ok, assigns} ->
13
render(conn, "index.html", assigns)
14
- error ->
+ {:error, error} ->
15
conn
16
|> put_flash(:error, "There was an error rendering <%= schema.human_plural %>. #{inspect(error)}")
17
|> redirect(to: Routes.<%= schema.route_helper %>_path(conn, :index))
0 commit comments