-
-
Save shankardevy/6ca01040ec7e6099da7b31191bcd6bd5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule MangoWeb.CheckoutController do | |
use MangoWeb, :controller | |
alias Mango.Sales | |
def edit(conn, _params) do | |
order = conn.assigns.cart | |
order_changeset = Sales.change_cart(order) | |
render conn, "edit.html", | |
order: order, | |
order_changeset: order_changeset | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, Listing 16 in the Checkout chapter says
order_changeset = Sales.change_order(order)
for what is on line 7.