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?
Posted via http://www.ruby-forum.com/.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.