Rails and relative_url_root
And add a line at the end of config/environment.rb
ActionController::AbstractRequest.relative_url_root = "/netvibez"
What this does is change the Rails application to run starting with a netvibez in the first part of the URL. It is useful!!!
For example, we need this when we develop facebook application. It is the canvas_path (http://apps.facebook.com/netvibez)
one comment so far »
Copy link for RSS feed for comments on this post or for TrackBack URI
Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
How do you reconcile working between your development and production environments? After changing config/environment.rb, do you have to change your development environment setup so you can access your server with the “/netvibez” in your URL?
Comment by salamander — January 8, 2008 @ 1:45 pm