This is the ruby code from my web site that works great LOCALLY:
<% slika = Refinery::Page.find('torte-za-rodendan') %>
<%= link_to (slika), :class => "hp_product" do %>
<%= image_tag slika.key_image.url, :width=>"154", :height=>"100" %>
<h2>Za rođendan</h2> <!-- <%= slika.title %> -->
<% end %>
The problem is - I have to give it a link to the picture that was uploaded on Amazon S3 so that users can view the picture GLOBALLY.
Can anyone please give me advice how can I modify my code in order to achieve that?