I just installed RMagick and am trying to display a thumbnail of any image I throw at it on my webpage. But the code from the tutorial opens up a new window in order to show my image. Here's what I have.
require 'RMagick'
class StaticPagesController < ApplicationController
include Magick
def home
@cat = ImageList.new("app/assets/images/me.jpg")
end
end
and the view:
<%= @cat.display %>
I want the image to be displayed on the page instead a new window pops up displaying the image and this is displayed on the page:
#<Magick::ImageList:0x007f564804bb18>
UPDATE
I need to resize the image before I display it.