Making Cart a Little Prettier
Let’s finish polishing the button for adding products to the cart.
We'll cover the following
This may be a bit underwhelming. We have the scaffolding for the cart, but when we created it we didn’t provide any attributes. As a result, the view doesn’t have anything to show. For now, let’s write a trivial template. Don’t worry, we’ll make it look nicer in a minute. We will update the views/carts/show.html.erb
with the following code:
Get hands-on with 1200+ tech skills courses.