I am trying to send data to a specific controller#action pair, but my application redirects me to POST (but not GET), and I cannot understand why.
I built the bare-bones controller in one way:
class NavigationsController < ApplicationController def foo render :text => 'in foo' end end
There is only one rule in my routing file:
map.connect ':controller/:action/:id'
Here is my result when I get and post though:
$ curl http://localhost:3000/navigations/foo/1 in foo $ curl -d 'a=b' http://localhost:3000/navigations/foo/1 <html><body>You are being <a href="http://localhost:3000/">redirected</a>.</body></html>
characteristics: rails 2.3.8, ruby 1.8.7
source share