% answers = answer.respond_to?(:answer) ? answer.answer : answer %> Enter answer here <%= text_area_tag 'answer[text]', answers, {rows: 10, data: { last: answers } } %>