Files
wedding/app/admin/guests.rb
John Lees-Miller 6e82ba528b Make open source
2018-10-27 16:46:26 +01:00

22 lines
450 B
Ruby

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