# find the user:user=User.find(1)user=User.find_by(email:"admin@example.com")user=User.find_by(username:"root")user=User.find_by(name:"Administrator")user=User.find_by(admin:true)# pretty_print parametersppu.attributes# change the passworduser.password='kashz'user.password_confirmation='kashz'# and saveuser.save