JordanHatch/maslow-redux

View on GitHub
app/views/need_responses/edit.html.erb

Summary

Maintainability
Test Coverage
<% content_for :page_title, "Edit ##{need.need_id}: #{format_need_goal(need.goal)}" %>
<% content_for :navigation do %>
  <%= render partial: 'needs/navigation' %>
<% end %>

<article class="need">
  <section class="need-main need-form">
    <header>
      <h1>Edit response to this need</h1>
    </header>

    <%= semantic_form_for [need, need_response], url: need_response_path(need, need_response) do |f| %>
      <%= render partial: 'form', locals: { f: f } %>
    <% end %>
  </section>
</article>