Question

I am getting the problem of MiniMagick

here is the description what i wants to need.

I am using the following gem for creating the QR code.

  gem 'rqrcode-rails3'

As that gem response me data of QR code in SVG format and i wants to create a PNG format image with following way.............

image = MiniMagick::Image.read(svg) { |i| i.format "svg" }

but it gives me error-

uninitialized constant MenusController::MiniMagick

I have following ruby and rails version.

ruby 1.9.2
rails 3.2.13

please help me.

Was it helpful?

Solution

You need to add

gem 'mini_magick'

to your gemile and run bundle install

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top