Welcome Guest | Login

routes misinterprets POST as GET!

trailing slashes in the url weirdness:

submitting through
<form action="/user/" method="post">
correctly maps to :controller => 'user', :action => 'create'

but
<form action="/user" method="post">
maps to :controller => 'user', :action => 'index'
as though i submitted a get. even when i hit refresh afterwards in the browser, it doesnt give me the confirmation warning about refreshing with post data.

really strange stuff, and this is only happening on your server in production; on my local machine it behaves normally. we're running the same version of ruby 1.8.6 and my rails code is in the /vendor directory, so we're running the same rails.

any ideas? micah.

ps. sorry if this has been covered in the forum somewhere, your search button is permanently greyed out for me. you might want to look into that as well.

2008-01-30 06:13 PM

What browser are you using?  The search is a Google custom search.

Also, is this app on FastCGI?  that would explain it.  There have been strange reportings of FastCGI and apache doing odd things together.  

2008-01-30 10:08 PM

im running firefox 2.0.0.11... nothing exotic.
and yes, i am running through fastcgi. is the only solution to upgrade to a mongrel cluster?

2008-01-31 08:27 PM

So far the only solution has been to use Mongrel - no workarounds have been discovered yet so we'd be happy to give you a free mongrel until we can figure out a workaround.  Contact support.

2008-02-01 12:24 AM

thanks very much! ill take you up on that offer.

2008-02-02 06:32 PM


Hello Guest! In order to post you must be an active client with us, please log in or sign up.