I'm trying to figure out how to get rmagick on my app, and then make it work on Heroku?
For Rails3, you have to add this specification:
gem "rmagick", "2.12.0", :require => 'RMagick'
Note: require is CAsE SeNSITIvE
Ok so for future reference heres what needs to be done.
In your .gems file you need:
rmagick
and then in your config/environment.rb file you need:
config.gem "rmagick",
:lib => "RMagick"
Because its already preinstalled with heroku - this does the trick.
Once I did the following from capps answer.
gem "rmagick", "2.12.0", :require => 'RMagick'
Then I added the require statement to any file uses rmagick it fixed my issue.
require 'RMagick'
This worked on Heroku cedar stack running rails 3.1
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