File_upload with development/ in url

Hi,
I’m pretty new to Ruby and I’ve been banging my head against my desk all
day trying to get to the bottom of this.
I’m trying to use file_upload to upload image files, but for some reason
when I try to view them using <%= file_column_field “propertyimage”,
“img_location” %> the url includes a development/ directory.

eg:
“/propertyimage/img_location/5/x.jpg”
“/propertyimage/img_location/development/5/x.jpg”

Anyone any ideas?
Cheers
ab

Ok so its file_column and not file_upload as I originally stated.

The development directory in the url obviously comes from the rails_env
defaulting to development. However I can not seem to get either
file_column to pick up rails_env when I set it or the output to stop
using it