Código ruby:
Ver originaldef login
#print(params.inspect)
@user = User.all
nick = params[:nick]
print nick
@user.each do |log|
if log.name == nick
print log.id
flash[:notice] = 'jjjjj'
redirect_to user_path(log.id)
else
render users_path
end
end
end