Sha256: 170b0b12a7ab8e1e889608c076565d8bd8056fcb2d594efb7b5e2fbe00628ffc
Contents?: true
Size: 380 Bytes
Versions: 38
Compression:
Stored size: 380 Bytes
Contents
csv << [ 'Name', 'Email' , 'Date', 'IP', 'Form Location'] for field in @form.fields csv[0] << field.name end for response in @responses response_row = [response.name,response.email,response.created_at.to_formatted_s(:long_dot),response.ip,response.referrer] for field in @form.fields response_row << response.send(field.underscored_name) end csv << response_row end
Version data entries
38 entries across 38 versions & 1 rubygems