app/views/answerer/_answers.html.erb in ask-0.5.1 vs app/views/answerer/_answers.html.erb in ask-0.5.2
- old
+ new
@@ -9,10 +9,10 @@
<% questions.each do |question| %>
<dt><%= question.name %></dt>
<% answerer.answers_to(question).each do |answer| %>
<dd>
<% if answer.is_a?(Answer) && answer.question.supports_uploads? && !answer.uploaded_file.blank? %>
- <%= link_to answer.to_s, answer.uploaded_file.url, target: "_blank" %>
+ <%= link_to asset_path(answer.uploaded_file_url), asset_path(answer.uploaded_file_url), target: "_blank" %>
<% else %>
<%= simple_format(answer.to_s) %>
<% end %>
</dd>
<% end %>
\ No newline at end of file