How to clear password field on ruby on rails

I put:

@title = "Sign up" @user.password.clear @user.password_confirmation.clear render "new"


I might not be understanding the full issue, but you could just set the strings to blank. I say I might not understand the issue because I assume @user =, and the password attribs are blank by default?

@title = "Sign up" @user.password = "" @user.password_confirmation = "" render "new"