Files
wedding/app/admin/guests.rb
2020-05-30 09:40:57 +01:00

24 lines
481 B
Ruby

# frozen_string_literal: true
ActiveAdmin.register Guest do
permit_params :email, :first_name, :last_name, :attending, :diet, :songs,
:notes
scope :confirmed
scope :attending
scope :not_attending
form do |_f|
inputs 'Guest' do
input :email, as: :string
input :first_name
input :last_name
input :attending
input :diet, as: :text
input :songs, as: :text
input :notes, as: :text
end
actions
end
end