Setting rails root

<johnl> hey matt, do you remember how to tell rails that it’s hosted in a subdirectory of the root
<mattl> nope. not ever done that.
<johnl> ah: ActionController::AbstractRequest.relative_url_root
<johnl> in environment.rb
<mattl> so that’s if i wanted to have http://mattl.co.uk/railsforum/ instead of http://railsforum.mattl.co.uk/ ?
<johnl> yer

  • Category: Old

Posted by Matt Lee

Artist, writer, director and recovering free software user.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.