feat(user): display list and fix changeset
This commit is contained in:
parent
f1c1ca6d14
commit
fbb65e77c0
3 changed files with 16 additions and 11 deletions
|
@ -1,8 +1,11 @@
|
|||
defmodule LearningPhoenixWeb.UserController do
|
||||
use LearningPhoenixWeb, :controller
|
||||
alias LearningPhoenix.{Repo, User}
|
||||
|
||||
def index(conn, _params) do
|
||||
render(conn, :index)
|
||||
conn
|
||||
|> assign(:test, Repo.all(User))
|
||||
|> render(:index)
|
||||
end
|
||||
|
||||
def edit(conn, _params) do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue