# Rfacebook + attachment\_fu - path question

**URL:** <https://www.ruby-forum.com/t/rfacebook-attachment-fu-path-question/119204>\
**Category:** Rails\
**Created:** [November 4, 2007, 10:38pm UTC](https://www.ruby-forum.com/t/rfacebook-attachment-fu-path-question/119204 "2007-11-04T22:38:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkanders](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/7bcc69/32.png) [@dkanders](https://www.ruby-forum.com/u/dkanders)\
**Post date:** [November 4, 2007, 10:38pm UTC](https://www.ruby-forum.com/t/rfacebook-attachment-fu-path-question/119204/1 "2007-11-04T22:38:35Z")

</div>

Hi all,

I’m trying to use attachment\_fu with a facebook app - I have a challenge  
when I go to call an image:  
\<%= image\_tag @photo.public\_filename %\> renders:  
 ![](https://www.ruby-forum.com/my_app_name/photos/0000/0005/Picture_8.png?1194210310)

This is because the way I have my facebook set up is to always prepend  
the path with /my\_app\_name/

I added this to environment.rb as specified in the rfacebook tutorial on  
Liverails:

ActionController::AbstractRequest.relative\_url\_root = “/my\_app\_name”

any ideas on how to get around this?  
Thanks,  
Dustin
