Skip to content

Instantly share code, notes, and snippets.

@shankardevy
Last active August 18, 2017 08:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shankardevy/995c8831ba908f74f1fae037e214ffeb to your computer and use it in GitHub Desktop.
Save shankardevy/995c8831ba908f74f1fae037e214ffeb to your computer and use it in GitHub Desktop.
defmodule MangoWeb.RegistrationController do
use MangoWeb, :controller
alias Mango.CRM
def new(conn, _) do
changeset = CRM.build_customer()
render(conn, "new.html", changeset: changeset)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment