% question.input_options.each do | option | option_id = "#{option.parameterize}_#{question.to_i}" radio_html = {class: 'radio', id: option_id, data: {last: (question.answer == option) ? 'checked' : '' }} answers = answer.try(:answer) || answer %>