Skip to content

Instantly share code, notes, and snippets.

@shankardevy
Last active August 18, 2017 17: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/6ca01040ec7e6099da7b31191bcd6bd5 to your computer and use it in GitHub Desktop.
Save shankardevy/6ca01040ec7e6099da7b31191bcd6bd5 to your computer and use it in GitHub Desktop.
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
@thebrianemory
Copy link

Hello, Listing 16 in the Checkout chapter says order_changeset = Sales.change_order(order) for what is on line 7.

@shankardevy
Copy link
Author

@thebrianemory, the issue has been corrected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment