# Mongrel big trouble with --prefix and rendering

**URL:** <https://www.ruby-forum.com/t/mongrel-big-trouble-with-prefix-and-rendering/177742>\
**Category:** Deployment\
**Created:** [October 22, 2009, 8:49pm UTC](https://www.ruby-forum.com/t/mongrel-big-trouble-with-prefix-and-rendering/177742 "2009-10-22T20:49:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mex23](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e47774/32.png) [@mex23](https://www.ruby-forum.com/u/mex23)\
**Post date:** [October 22, 2009, 8:49pm UTC](https://www.ruby-forum.com/t/mongrel-big-trouble-with-prefix-and-rendering/177742/1 "2009-10-22T20:49:00Z")

</div>

Hi folks,

I have got a big problem out here.  
I’m using a mongrel cluster with --prefix parameter, but something very  
strange it’s happening;  
rails redirection happens without troubles, and I’m redirected to the  
right page, BUT! if I try to render a page from my controller (i.e.  
render :action =\> ‘begin’ ), all that I receive back from the browser is  
a “page not found” error, because it points to wrong url, missing the  
needed prefix.  
for instance, the url of a normal web page looks like:  
[http://www.example.com/example-site/action1](http://www.example.com/example-site/action1)  
If I try render :action=\>‘begin’ I get back:  
[http://www.example.com/begin](http://www.example.com/begin)  
completely without the example-site prefix.

I’ve tried googling and searching on the argument but, seems impossible  
to find something realted to my problem.

Any suggestion will be appreciated.

Thanks in advance

Stefano
