Skip to content

Instantly share code, notes, and snippets.

@shankardevy

shankardevy/checkout_controller.ex Secret

Last active Aug 18, 2017
Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@thebrianemory thebrianemory commented Aug 17, 2017

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

@shankardevy

This comment has been minimized.

Copy link
Owner Author

@shankardevy shankardevy commented Aug 18, 2017

@thebrianemory, the issue has been corrected.

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