title: Make a form_for add data to existing model (rails)
body: <p>I have a user model with name password and phone_number. On user creation I ask for email and password but I need a form on <strong>another</strong> page to add phone number!</p>
  
  <p>I tried this:</p>
  
  <pre><code>= form_for @user do |f|
    = f.label :phone_number
    = f.text_field :phone_number 
    %p.button
      = f.submit
  </code></pre>
  
  <p>Problem with this is that it hits the user update which asks for password_reset:</p>
  
  <p><strong>users_controller.rb</strong></p>
  
  <pre><code>def update
    if current_user
      @user = current_user
    else
      @user = User.find(params[:id]) 
    end
    @user.password_hash = nil
    if @user.update_attributes(params[:user])
      redirect_to @user, :notice =&gt; "Password has been changed!"
    else
      render "edit"
    end
  end
  </code></pre>
  
  <p>How could I fix this?</p>