我有这样的表格:
=form_for @current_user, :url => update_password_path do |f|
%label{:for => ""} * New Password
=f.password_field :password, :value => ""
但是当当前用户有密码时,尽管:value => ""
如何在页面上将此字段强制为空并仍然使用form_for?
答案 0 :(得分:1)
password_field_tag "user[password]", ""