Sha256: 390c83b6db08eedeedb803af7bc59b76a2111502997539b0916e7297acec4faf

Contents?: true

Size: 444 Bytes

Versions: 26

Compression:

Stored size: 444 Bytes

Contents

h1 Listing posts

table
  thead
    tr
      th Title
      th Body
      th Author
      th
      th
      th

  tbody
    - @posts.each do |post|
      tr
        td = post.title
        td = post.body
        td = post.author
        td = link_to 'Show', post
        td = link_to 'Edit', edit_post_path(post)
        td = link_to 'Destroy', post, data: { confirm: 'Are you sure?' }, method: :delete

br

= link_to 'New Post', new_post_path

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
sapience-0.2.10 test_apps/rails/app/views/posts/index.html.slim
sapience-0.2.9 test_apps/rails/app/views/posts/index.html.slim
sapience-0.2.8 test_apps/rails/app/views/posts/index.html.slim
sapience-0.2.7 test_app/app/views/posts/index.html.slim
sapience-0.2.6 test_app/app/views/posts/index.html.slim
sapience-0.2.5 test_app/app/views/posts/index.html.slim