Introduce ViewComponent
All checks were successful
continuous-integration/drone/push Build is passing

https://viewcomponent.org
This commit is contained in:
2022-02-20 15:39:01 -06:00
parent 7c5bd9aa34
commit 835152c656
32 changed files with 123 additions and 37 deletions

View File

@@ -1,6 +1,6 @@
<%= render partial: "components/header", locals: { page_title: "Donations" } %>
<%= render HeaderComponent.new(title: "Donations") %>
<%= render layout: "components/main_simple" do %>
<%= render MainSimpleComponent.new do %>
<h2>Editing Donation</h2>
<%= render 'form', donation: @donation, url: admin_donation_path(@donation) %>