I have an application that does query in the database and returns everything and shows in the index.html
In my database, there is a column(status) called ACTIVE / INACTIVE
I needed this in my index.html, only those that are active …
How do I block the inactive?
def index(conn, _params) do
todos = Registro.list_todos()
render(conn, "index.html", todos: todos)