# Wirtin root path using file column

**URL:** <https://www.ruby-forum.com/t/wirtin-root-path-using-file-column/123511>\
**Category:** Rails\
**Created:** [December 18, 2007, 11:00am UTC](https://www.ruby-forum.com/t/wirtin-root-path-using-file-column/123511 "2007-12-18T11:00:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![koli](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/41988e/32.png) [@koli](https://www.ruby-forum.com/u/koli)\
**Post date:** [December 18, 2007, 11:00am UTC](https://www.ruby-forum.com/t/wirtin-root-path-using-file-column/123511/1 "2007-12-18T11:00:14Z")

</div>

hi,  
i want the imagesto be written to directory outside the rails  
app using the file\_column.  
MY RAILS\_APP PATH:/var/www/domain.in/rails\_app

i want the images to be uploaded to a directory to  
/var/www/domain.in/

the model is as below

class Entry \< ActiveRecord::Base

```
    file_column :image, :magick => {
  :versions => { "thumb" =>"50x50"}
},{:root_path => "/var/www/domain.in/"}

```

end  
the image upload is not happenin to the above specified path?it still  
happens in the /rails\_app/public/model etc…etc…

is there something that i’m missing??
