<% question.text.lines.each.with_index do |q, i| %>

<%= i + 1 %>. <%= q %>

<% end %>