How to clear password field on ruby on rails

I put:

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

Regards. http://kiranatama.com

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 = User.new, and the password attribs are blank by default?

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

Brian