Put_change(changeset, :encrypted_password, (pass)) Web/controllers/user_controller.ex defmodule Test.UserController doĭef show(conn, % -> This error seems to be coming from the Changeset as whenever I comment out my Changeset and just render an empty html page it works. UndefinedFunctionError at GET /users/newįunction /2 is undefined or private. Whenever I try to route my page to the user sign up I am getting the following error. ![]() This post at least provides a line in the sand that I can revisit as I build up more experience in using and observing changesets in the wild.I am attempting to make a simple sign in page. It feels like it has been caught between two opposing principles and has thus been pulled in two different directions.Ĭhangesets want to offer welcome convenience in building web applications and they want to follow the Elixir and Phoenix principles of separation of concerns and decoupled code. It doesn’t decompose as neatly as I might like.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |