-
-
Save shankardevy/e3f9dc3c0a3d3cde517439c5a73aff4d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1 class="page-title"><%= title_case @name %></h1> | |
<div> | |
<%= for product <- @products do %> | |
<div class="product"> | |
<div class="product-name"><%= product.name %></div> | |
<div>₹ <span class="product-price"><%= product.price %></span></div> | |
</div> | |
<% end %> | |
</div> |
Where does the title_case
function come from?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This class is missing the css classes for each element. Following our previous code examples, this file should look like
Also, at this point, we haven't added a picture property to our
Product
struct. So if you add lines 6-8, thecategory_page_test.exs
test will fail with the following error: