I'm trying to use MiniMagick to resize images and I did the following in my controller file:
require 'rubygems'
require 'mini_magick'
and
img = MiniMagick::Image.open(file)
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.
Dammit, restarting the server solved it..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With