I have made form for create user page and edit user page
in create user page there is no password and password confirmation
as the password will be sent through email.
but in edit page there will be password and password confirmation field.
i do something like
-if params[:action]=="edit" .field = f.label :password %br = f.password_field :password .field = f.label :password_confirmation %br = f.password_field :password_confirmation .clear
but when other field is invalid and it redirect to invalid page, the url
become something like
then the password and password confirmation field disappeared
i have tried something like puts @password_filed = true and put it is
edit action of user controller instead of usinf params[:action] but it
still not work.
anyone have any suggestion for me please