Skip to content

Commit

Permalink
listing ingredients on show page
Browse files Browse the repository at this point in the history
  • Loading branch information
add2point71dots committed May 5, 2017
1 parent cdc8ef2 commit 205d3fa
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion app/views/recipes/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
<h2><%= @recipe.label %></h2>

<%= image_tag @recipe.image, alt: @recipe.label %>
<section class="row">
<section class="medium-4 small-12 columns">
<%= image_tag @recipe.image, alt: @recipe.label %>
</section>
<section class="medium-8 small-12 columns">
<h3>Ingredients:</h3>
<ul>
<% @recipe.ingredients.each do |ingredient| %>
<li><%= ingredient %></li>
<% end %>
</ul>
</section>
</section>

0 comments on commit 205d3fa

Please sign in to comment.