I'm having an issue with some routes in my apps, the apps are the same
app the only difference is that I use one for testing and the other for
production stored in different directories lets say 'test' and 'prod'.
The applications work with phusion passenger and their work in a virtual
The thing is that in my routes.rb I have this code for both apps:
map.connect '', :controller => 'controllerName'
It seems that all worked just fine until I tested a form and the
resulting url was something like this: www.name.com/controllerName when
the correct url must be something like this
The form that give me this problem is this one:
form action="../controllerName/" method="post"
form action="/controllerName/" method="post"
I guess this will happen with every form that redirect to the controller
set in the map.connect like the default controller.
Someone knows a solution for this?