index.html.slim 330 Bytes
.pool-div
  h2 My Bets
  = simple_nested_form_for current_user, url: put_bets_path, method: :patch do |f|
    - @pools.each do |pool|
      div
        h3 = pool.name
      - if pool.editable?
        = render 'pool_form', pool: pool, f: f
      - else
        = render 'readonly_pool', pool: pool
    div
      = f.submit 'Save'