Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def to_csv
- array =[self.teacher.first_name+','+self.teacher.last_name.encode, self.principal.first_name+' '+self.principal.last_name]
- if self.optout != true then
- for i in 0..9
- array << self.responses[i].answer.value << self.responses[i].comment.try(:text)
- end
- end
- array.to_csv()
- end
Add Comment
Please, Sign In to add comment