volunteers/lib/form_handler.rb

11 lines
186 B
Ruby

class FormHandler
def handle_form(section , data )
puts "Section on page : #{section.page.name}"
data.each do |name , value|
puts "#{name}: #{value}"
end
end
end