Les rails convertissent l'image en base64

# in Ruby
@img_base64 = Base64.strict_encode64(your_content_here)

# views
<%= image_tag "data:image/jpg;base64, #{@img_base64}" %>
Lioruby