Sha256: a941c5de0101913992134beed43a8ea8edeb0b872952a679e09ac6c4bf06345d

Contents?: true

Size: 525 Bytes

Versions: 2

Compression:

Stored size: 525 Bytes

Contents

<%= render partial: "rapidfire/answers/errors", locals: {answer: answer} %>

<div class="form-group">
  <%= f.label :answer_text, answer.question.question_text %>
  <%- answer.question.options.each_with_index do |option, index| %>
    <span class="form-group sub">
      <%= f.label "answer_text_#{index}" do %>
        <%= f.radio_button :answer_text, option, id: "#{f.object_name.gsub(/\]\[|[^-a-zA-Z0-9:.]/, "_").sub(/_$/, "")}_answer_text_#{index}" %>
        <%= option %>
      <% end %>
    </span>
  <% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rapidfire-4.0.0 app/views/rapidfire/answers/_radio.html.erb
rapidfire-3.1.0 app/views/rapidfire/answers/_radio.html.erb