<%= @question.details %>

Answers

<% for answer in @answers %> <% end %>
Details Active Position
<%= truncate(answer.details, :limit => 55) %> <%= answer.active.to_s %> <%= answer.position %> <%= link_to "Show", [:survey_admin, @question, answer] %> <%= link_to "", edit_survey_admin_question_answer_path(@question, answer), :class => 'ss_sprite ss_application_edit' %> <%= link_to "", [:survey_admin, @question, answer], :confirm => 'Are you sure?', :method => :delete, :class => 'ss_sprite ss_cross' %>
<% if answer.scores.empty? %> <%= link_to 'No properties...', edit_survey_admin_question_answer_path(@question, answer) %> <% else %>
    <% answer.scores.each do |score| %>
  • <%= score.survey_property.name %>: <%= score.value %>
  • <% end %>
<% end %>
<%= image_tag answer.image unless answer.image.blank? %>
<%#= will_paginate @answers %>

<%= link_to "New Answer", new_survey_admin_question_answer_path(@question), :class => 'button' %>