Skip to content

Instantly share code, notes, and snippets.


shankardevy/checkout_controller.ex Secret

Last active Aug 18, 2017
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

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.


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