Topic: App is putting /public at start of urls..

Hi all,

I've just deployed my rails app to my production server, which runs Apache 2.0 and FastCGI. It worked fine locally while developing on OSX with WebBrick, but on my server, form posts and the admin area are all putting /public/ at the start of the urls..

If I just go to a main rewritten url such as /articles/category/general then it works fine, it seems to be the link_to methods when using :controller, :action values that insert public..

Anyone have any idea what I've done wrong here?

Many Thanks,
Matthew

Re: App is putting /public at start of urls..

Check the routes in the routes.rb file.
Are the routes configured to add the public directory to the url?
Also, what is the DocumentRoot setting for the Apache server?

Re: App is putting /public at start of urls..

Hi dvohra,

Thanks for your response, it was the DocumentRoot on the vhost.conf, my hosting company were rails newbs tongue