dr-click/questionnaire

View on GitHub
lib/generators/templates/attempts_views/new.html.erb

Summary

Maintainability
Test Coverage
<h3><%= flash[:alert]%></h3>
<h3><%= flash[:error]%></h3>

<% if @survey.available_for_participant?(@participant) %>
  <%= render 'form' %>
<% else %>
  <p>
    <%= @participant.name %> spent all the possible attempts to answer this Survey
  </p>
<% end -%>