Make open source
This commit is contained in:
21
app/admin/guests.rb
Normal file
21
app/admin/guests.rb
Normal file
@ -0,0 +1,21 @@
|
||||
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
|
Reference in New Issue
Block a user