I’m stuck on a Routing Error I’m getting when calling my application
from a test/stub application (App1), however when I enter the same
to App2 via the browser I do NOT get this routing issue and it works.
My problem is in more detail (if anyone can help) that:
 when I call an action in App2 from App1 I get a ROUTING ERROR,
“Recognition failed for /mycontroller/myaction” - this seems to come
App2’s inbuilt Rails framework which somehow sees a routing problem and
immediately sends back a “Routing Error” message without ever getting to
code within App2.
 when I use the browser with same "
http://localhost:3000/mycontroller/myaction" URL (i.e. that App1 seems
correctly producing, although I don’t have a HTTP trace mechanism to
prove this) App2 seems to work fine
 again I don’t see any log info turn up in App2 (as if the rails
framework picked up on the routing error first and then bounced it prior
my code getting involved)
 some details of my code below
Code Used (which resides in App1 running on port 3001 - it’s calling
running on port 3000)
url = " http://localhost:3000/mycontroller/myaction"
uri = URI.parse(url)
response = nil
Net::HTTP.start(uri.host, uri.port) do |request|
response = request.post(uri.path, postData)
Note that “response.body” here gives:Action Controller: Exception caught <>
Recognition failed for "/mycontroller/myaction"
- Yet when I call the same URL from my browser it works (and doesn’t
this message). The URL I use here would be:
Any ideas/help? I can’t seem to see what I’m doing wrong. Any way to
the HTTP coming directly into App2 to see for myself what Rails is
What about a way to turn up the logging/trace for rails re HTTP?
Thanks in advance
(TextEdit / MacBook)