<% if @recipe.total_time.present? || @recipe.active_time.present? %>
<%= recipe_time(@recipe) %>
<% end %> <% if @recipe.yields.present? %>
Yields<%= @recipe.yields %>
<% end %> <% if @recipe.source.present? %>
Source<%= @recipe.source %>
<% end %>

Ingredients

    <% @recipe.recipe_ingredients.each do |i| %>
  • <%= "#{i.quantity} #{i.units} of #{i.custom_name}" %>
  • <% end %>

Directions

    <% @recipe.recipe_steps.each do |s| %>
  1. <%= "#{s.step}" %>
  2. <% end %>
<%= link_to 'Edit', edit_recipe_path(@recipe), class: 'btn btn-default' %> <%= link_to 'Back', recipes_path, class: 'btn btn-default' %>