Decompose into partials

This commit is contained in:
2025-05-15 22:23:12 -04:00
parent b492c4e111
commit 3985b9c93c
7 changed files with 209 additions and 196 deletions

View File

@@ -19,9 +19,20 @@ class HomeController < ApplicationController
Person.new(name, image, role, relationship, extra)
end
Section = Struct.new(:id, :title)
SECTIONS = [
Section.new("ceremony", "Ceremony & Reception"),
Section.new("wedding-party", "Wedding Party"),
Section.new("accommodations", "Accommodations"),
Section.new("registry", "Registry"),
Section.new("our-story", "How We Met")
].freeze
def index
@rsvp_by_date = rsvp_by_date
@wedding_party = PARTY_MEMBERS
@sections = SECTIONS
end
def rsvp_by_date