% answer_string = answer.respond_to?(:answer) ? answer.answer : answer %> Enter answer here <%= text_area_tag 'answer[answer]', answer_string, {rows: 10, data: { last: answer_string }, id: "answer_answer-#{question.question_id}" } %>