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
= f.label :password
= f.password_field :password
= f.label :password_confirmation
= f.password_field :password_confirmation
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