class HomeController < ApplicationController Person = Struct.new(:name, :image, :role, :relationship, :extra_attrs) PARTY_MEMBERS = [ [ "Gemma", true, "Matron of Honor", "Childhood Friend" ], [ "Meghan", true, "Maid of Honor", "Rock Climbing Friend" ], [ "Christine", true, "Bridesmaid", "Childhood Friend" ], [ "Jennie", true, "Bridesmaid", "Rock Climbing Friend" ], [ "Julia", true, "Bridesmaid", "Sister-in-law" ], [ "DeAnna", true, "Bridesmaid", "Rock Climbing Friend", "object-left-top" ], [ "Emil", true, "Best Man", "Adam's Brother", "object-left-top" ], [ "Ridge", true, "Best Man", "Childhood Friend", "object-left-top" ], [ "Tom", true, "Groomsman", "Childhood Friend" ], [ "Eric", true, "Groomsman", "Childhood Friend", "object-top" ], [ "Toby", true, "Groomsman", "Rock Climbing Friend", "object-top" ], [ "Zack", true, "Groomsman", "Jillian's Brother" , "object-bottom"] ].map do |name, image, role, relationship, extra| 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("wedding-program", "Wedding Timeline"), 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 ENV["RSVP_DATE"] || "May 1, 2025" end end