View Full Version : FormPanel won't standardSubmit by POST

30 Jul 2010, 11:58 AM
I am trying to create a form which will act the same as our current login form. To work this form must submit by POST. I have set up the FormPanel() like so;

var login = new Ext.form.FormPanel({
url: 'auth/login',
standardSubmit : true,

And I am submitting it like this

handler: function() {
login.submit({method: 'post'});

But when it gets to the serverside Rails's request.post? returns false. I've stepped through the JS for the submit() method here;

form.method = (options.method || form.method).toLowerCase();
//breakpoint here

the form.method seems to be "undefined" just before the submit() method is called. Can I just set the method attribute of the <form> tag?