Hello guys,
I hope you can point me in the right direction. I just moved to Rails
2.0 and I’m having some problems.
I’m using ExtJS (excellent widget library btw), to make my
application.
Right now I’m testing a login form that I’m developing for a web
application, the login form sends the info throught AJAX.
I get a 404 error from the server, it complains that the method used
to pass the values was GET, but I’m pretty sure it was a POST, here is
the firebug error:
-> POST http://localhost:3000/session/404 (313ms)
And this is what firebug report in the [Headers | Post | Response]:
[Post]
module=login&login=Sergio
%20Loredo&password=cevival&authenticity_token=7e4f20fa543cae7c01921acf0c772d81fdb81138
As you can see the [Post] tab in firebug is representing the data I
sent as a GET string. Why is that?
[Response]
Routing Error
No route matches “/” with {:method=>:get}
I’m clueless as to why is this behaving this way, aren’t AJAX calls
supposed to be always POST?
I’m using restful_authentication, and the URL the form is trying to
POST to is /session (I have map.resource :session).
If you need more info, just tell me and I will reply with it.
Thanks in advance,
Adrián.