why create an User object during login? or do you want to make sure, a
user with this username/password does exist? in this case you would have
to save the thing.
(and make sure, the creation does not fail)
and this line: @login = @params[‘user’][‘login’]
it should be params of course without the @. but still there is no input
field “login” in your form.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.