form mailer

This commit is contained in:
2023-02-09 12:49:33 +02:00
parent 454a3de3f2
commit a04c860354
8 changed files with 74 additions and 6 deletions

View File

@ -1,10 +1,11 @@
class FormHandler
def handle_form(section , data )
puts "Section on page : #{section.page.name}"
@data = data
data.each do |name , value|
puts "#{name}: #{value}"
end
FormMailer.received(data).deliver_later
end
end