Making Cart a Little Prettier

Let’s finish polishing the button for adding products to the cart.

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 1400+ tech skills courses.