Those 'weird codes' are just graphical representations of ruby objects. It looks like what you have there is an array of thumbnail objects, so if you want to display them as html images you need to do something like this (this code goes in your .erb
file):
<% @thumbnails.each do |thumbnail| %>
<%= image_tag(thumbnail.url) %>
<% end %>
That will just render the image tags one after the other, which probably isn't what you want, but it should give you the idea.