12 lines
197 B
Ruby
12 lines
197 B
Ruby
class FormHandler
|
|
|
|
def handle_form(section , data )
|
|
@data = data
|
|
data.each do |name , value|
|
|
puts "#{name}: #{value}"
|
|
end
|
|
FormMailer.received(data).deliver_later
|
|
end
|
|
|
|
end
|