Rmagick is using the wrong file path

I’m having problems with rmagick: It works but is looking in the wrong

My environment has the following lines:

  1. require ‘rubygems’
  2. require ‘RMagick’
  3. include Magick

My controller has the following:

  1. imagemagick_for ‘/data/pictures/’
  2. #my pics are in newspipe/data/pictures, where newspipe is my app

And in my view i use image_magick with

  1. <%= imagemagick_tag “pic32.jpg”, ‘resize(100x100)’ %>

But the generated html has this for the above line:


Can anyone see what i’m doing wrong (or neglecting to do)?