[<% @found_resources.each_with_index do |res,i| %>{"id": "<%=res.id.to_s%>", "title": "<%=res.title%>", "description": "<%=res.description%>", "author": "<%=res.author.name%>", "object": "<%= if res.is_a? Embed; then raw(res.fulltext); else res.file.to_s.downcase; end%>"}<% unless i==(@found_resources.size - 1) %>,<%end%><%end%>]


[<% @found_resources.each_with_index do |res,i| %>{"id": "<%=res.id.to_s%>", "title": "<%=res.title%>", "description": "<%=res.description%>", "author": "<%=res.author.name%>", "object": "<%= if res.is_a? Embed; then raw(res.fulltext); else 'http://' + request.env['HTTP_HOST'] + res.file.to_s.downcase; end%>"}<% unless i==(@found_resources.size - 1) %>,<%end%><%end%>]


Return full resources URL when rendering objects. Heads up @agordillo.
Return full resources URL when rendering objects.
Heads up @agordillo.
