On 14 Apr 2011, at 11:27, HelloRails <[email protected]> wrote:
>
> Without extJS (login,js) everything looks nice. Sessions works and so
> on. But i want make form in extJs, i made it, but when i put my right
> data (user:test,pw:test) i get in console:
>
> Processing UserController#authenticate (for 127.0.0.1 at
> 2011-04-14 13:21:19) [POST]
> Parameters: {"username"=>"test", "password"=>"test"}
> User Columns (0.5ms) SHOW FIELDS FROM `users`
> User Load (0.2ms) SELECT * FROM `users` WHERE (username = NULL
> and password = NULL) LIMIT 1
>
> My form doesn't look my data:(
>
Not at all familiar with extjs, but given that you are expecting
params[:userform] to contain your data, rails is expecting the names of the
inputs to be userform[username] and userform[password], which doesn't seem to
tally with what's in your js files.
Fred
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.