Sha256: 13cd56ce7f532705c60565b03072984b544eb4e0320821135a328ffc7ba3b4f0

Contents?: true

Size: 629 Bytes

Versions: 7

Compression:

Stored size: 629 Bytes

Contents

%h1 Listing ingredients

%table
  %thead
    %tr
      %th Name
      %th Description
      %th Aisle
      %th Store
      %th Cost
      %th
      %th
      %th

  %tbody
    - @ingredients.each do |ingredient|
      %tr
        %td= ingredient.name
        %td= ingredient.description
        %td= ingredient.aisle
        %td= ingredient.store
        %td= ingredient.cost
        %td= link_to 'Show', ingredient
        %td= link_to 'Edit', edit_ingredient_path(ingredient)
        %td= link_to 'Destroy', ingredient, method: :delete, data: { confirm: 'Are you sure?' }

%br

= link_to 'New Ingredient', new_ingredient_path

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cookbook-0.1.6 spec/dummy/app/views/ingredients/index.html.haml
cookbook-0.1.5 spec/dummy/app/views/ingredients/index.html.haml
cookbook-0.1.4 spec/dummy/app/views/ingredients/index.html.haml
cookbook-0.1.3 spec/dummy/app/views/ingredients/index.html.haml
cookbook-0.1.2 spec/dummy/app/views/ingredients/index.html.haml
cookbook-0.1.1 spec/dummy/app/views/ingredients/index.html.haml
cookbook-0.1.0 spec/dummy/app/views/ingredients/index.html.haml