I’m trying to use MiniMagick to resize images and I did the following in my controller file:
require 'rubygems' require 'mini_magick'
img = MiniMagick::Image.open(file)
But when I invoke the controller the following
LoadError (cannot load such file -- mini_magick)
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
rails console, but not when run as a server.
Thx in advance.