ruby on rails – MiniMagick – cannot load such file

I’m trying to use MiniMagick to resize images and I did the following in my controller file:

require 'rubygems'
require 'mini_magick'


img =

But when I invoke the controller the following

LoadError (cannot load such file -- mini_magick)

I’ve added gem 'mini_magick' to my Gemfile so I have really no idea what’s going on. Can someone help me with this?

BTW, it is available in both irb and rails console, but not when run as a server.

Thx in advance.


(Visited 32 times, 1 visits today)