Decompose into partials
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user