hubfeenix.fi/lib/form_handler.rb

12 lines
197 B
Ruby
Raw Normal View History

class FormHandler
def handle_form(section , data )
2023-02-09 11:49:33 +01:00
@data = data
data.each do |name , value|
puts "#{name}: #{value}"
end
2023-02-09 12:13:35 +01:00
FormMailer.received(data).deliver_later
end
end