Welcome Guest | Login

Absolute URLs

I've managed to get a full application deployed on the HostingRails server; however, I was only able to do this by hardwiring absolute URLs to reference local files.  

On my development server, I can reference files within the Rails framework without including information about parent directories.  This isn't working in the deployed application.  I'm only able to get it to reference local files if I include the full path from the server root.  

Please let me know if you have any suggestions for addressing this.  

Thank you,

-Arlen

2007-11-05 01:33 PM

Hi - I guess you might have used it incorrectly. May be starting the absolute URLs with a '/' might fix it for you. Could you please try this out and see if it helps you. Thank you

2007-11-05 02:15 PM

HostingRails Support
I've tried prepending the top-level directory with a slash, and I've tried it without the slash.  The deployed version of the Rails app only accesses the file if a full, absolute URL is provided, with the from the server root all the way down to the file name.  

2007-11-05 02:23 PM

Do you have any custom lines in your environment.rb (such as anything that modifies relative_url_root?) or in .htaccess (RewriteBase?).  Is this a FastCGI app we're talking about?  What are you using locally to develop? Mongrel?  Have you symlinked your app/public correctly to the DocumentRoot of your domain?  

2007-11-05 05:24 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.