diff --git a/app/assets/images/home2.svg b/app/assets/images/home2.svg new file mode 100644 index 0000000..9452fb4 --- /dev/null +++ b/app/assets/images/home2.svg @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/assets/images/hotel-warner.png b/app/assets/images/hotel-warner.png new file mode 100644 index 0000000..5afd031 Binary files /dev/null and b/app/assets/images/hotel-warner.png differ diff --git a/app/assets/images/lavender-wisp.png b/app/assets/images/lavender-wisp.png new file mode 100644 index 0000000..254763b Binary files /dev/null and b/app/assets/images/lavender-wisp.png differ diff --git a/app/assets/images/love-park-small.png b/app/assets/images/love-park-small.png new file mode 100644 index 0000000..cfbb348 Binary files /dev/null and b/app/assets/images/love-park-small.png differ diff --git a/app/assets/images/love_park.jpg b/app/assets/images/love_park.jpg new file mode 100644 index 0000000..5a3f3d4 Binary files /dev/null and b/app/assets/images/love_park.jpg differ diff --git a/app/assets/images/residence-inn.png b/app/assets/images/residence-inn.png new file mode 100644 index 0000000..198d990 Binary files /dev/null and b/app/assets/images/residence-inn.png differ diff --git a/app/assets/images/residence-inn.svg b/app/assets/images/residence-inn.svg new file mode 100644 index 0000000..71c16bb --- /dev/null +++ b/app/assets/images/residence-inn.svg @@ -0,0 +1,12 @@ + + + + + + + + + \ No newline at end of file diff --git a/app/controllers/invitations_controller.rb b/app/controllers/invitations_controller.rb new file mode 100644 index 0000000..5344cf7 --- /dev/null +++ b/app/controllers/invitations_controller.rb @@ -0,0 +1,2 @@ +class InvitationsController < ApplicationController +end diff --git a/app/helpers/invitations_helper.rb b/app/helpers/invitations_helper.rb new file mode 100644 index 0000000..1483b9e --- /dev/null +++ b/app/helpers/invitations_helper.rb @@ -0,0 +1,2 @@ +module InvitationsHelper +end diff --git a/app/models/invitation.rb b/app/models/invitation.rb new file mode 100644 index 0000000..1de66f3 --- /dev/null +++ b/app/models/invitation.rb @@ -0,0 +1,6 @@ +class Invitation < ApplicationRecord + + validates :name, length: {maximum: 64} + validates :attending, inclusion: { in: ["yes", "no"] } + validates :additional_guest, length: {maximum: 64} +end diff --git a/app/views/home/rsvp.html.erb b/app/views/home/rsvp.html.erb new file mode 100644 index 0000000..4b84462 --- /dev/null +++ b/app/views/home/rsvp.html.erb @@ -0,0 +1,63 @@ +
+
+
+

RSVP

+

Please respond by May 1, 2025

+
+
+ Name: + +
+ +
+
+ +
+
+ +
+
+
+
+ + + + + + + + + + + + + + + + + + diff --git a/db/migrate/20241117140232_create_invitations.rb b/db/migrate/20241117140232_create_invitations.rb new file mode 100644 index 0000000..3ae3bc9 --- /dev/null +++ b/db/migrate/20241117140232_create_invitations.rb @@ -0,0 +1,11 @@ +class CreateInvitations < ActiveRecord::Migration[7.2] + def change + create_table :invitations do |t| + t.string :name + t.string :attending + t.string :additional_guest + + t.timestamps + end + end +end diff --git a/db/schema.rb b/db/schema.rb new file mode 100644 index 0000000..afaf123 --- /dev/null +++ b/db/schema.rb @@ -0,0 +1,21 @@ +# This file is auto-generated from the current state of the database. Instead +# of editing this file, please use the migrations feature of Active Record to +# incrementally modify your database, and then regenerate this schema definition. +# +# This file is the source Rails uses to define your schema when running `bin/rails +# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to +# be faster and is potentially less error prone than running all of your +# migrations from scratch. Old migrations may fail to apply correctly if those +# migrations use external dependencies or application code. +# +# It's strongly recommended that you check this file into your version control system. + +ActiveRecord::Schema[7.2].define(version: 2024_11_17_140232) do + create_table "invitations", force: :cascade do |t| + t.string "name" + t.string "attending" + t.string "additional_guest" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end +end diff --git a/test/controllers/invitations_controller_test.rb b/test/controllers/invitations_controller_test.rb new file mode 100644 index 0000000..e2c1b42 --- /dev/null +++ b/test/controllers/invitations_controller_test.rb @@ -0,0 +1,7 @@ +require "test_helper" + +class InvitationsControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/test/fixtures/invitations.yml b/test/fixtures/invitations.yml new file mode 100644 index 0000000..7c2ad82 --- /dev/null +++ b/test/fixtures/invitations.yml @@ -0,0 +1,11 @@ +# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + name: MyString + attending: MyString + additional_guest: MyString + +two: + name: MyString + attending: MyString + additional_guest: MyString diff --git a/test/models/invitation_test.rb b/test/models/invitation_test.rb new file mode 100644 index 0000000..a7debde --- /dev/null +++ b/test/models/invitation_test.rb @@ -0,0 +1,7 @@ +require "test_helper" + +class InvitationTest < ActiveSupport::TestCase + # test "the truth" do + # assert true + # end +end