lib/generators/templates/attempts_views/new.html.erb
<% if @survey.nil? %>
<p>
<%= @participant.email %> there are not Active Surveys right now.
</p>
<% elsif @survey.available_for_participant?(@participant) %>
<%= render 'form' %>
<% else %>
<p>
<%= @participant.email %> spent all the possible attempts to answer this Survey
</p>
<% end -%>