# File\_upload with development/ in url

**URL:** <https://www.ruby-forum.com/t/file-upload-with-development-in-url/118567>\
**Category:** Rails\
**Created:** [October 29, 2007, 12:28am UTC](https://www.ruby-forum.com/t/file-upload-with-development-in-url/118567 "2007-10-29T00:28:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![axle\_bolt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@axle\_bolt](https://www.ruby-forum.com/u/axle_bolt)\
**Post date:** [October 29, 2007, 12:28am UTC](https://www.ruby-forum.com/t/file-upload-with-development-in-url/118567/1 "2007-10-29T00:28:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![axle\_bolt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/97f17d/32.png) [@axle\_bolt](https://www.ruby-forum.com/u/axle_bolt)\
**Post date:** [October 29, 2007, 12:20pm UTC](https://www.ruby-forum.com/t/file-upload-with-development-in-url/118567/2 "2007-10-29T12:20:55Z")

</div>

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
