Forum: Ruby on Rails path_prefix for all routes

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Milan D. (Guest)
on 2009-05-26 12:47
I'm deploying RoR application on Hostgator (shared hosting).
I want my application address to be www.domain.com/foo/bar/
Foo is the folder and bar is the symlink that points to the public
folder of my rails application located in my home folder.
www.domain.com/foo/bar gives me index.html page, but I can't hit any
controllers until I set :path_prefix => 'foo' for all routes. Is there
any better way to do it (setting the path_prefix for all routes at once,
or maybe I should change my .htaccess file)

My .htaccess is like this:
http://forums.hostgator.com/ruby-rails-support-t13038p7.html

Thank you in advance.
This topic is locked and can not be replied to.