title: ParameterMissing param is missing or the value is empty
body: <p>i have the following situation:
  I have a controller for admins , that i use to manage the users (model generated by Devise).</p>
  
  <p>So, i use the actions of another controller to manage the resources "users".</p>
  
  <p>Here my files:</p>
  
  <p>admins_controller.rb</p>
  
  <pre><code>before_action :set_user, only: [:show, :edit, :update, :destroy]
  
  def update
      respond_to do |format|
        if @user.update(user_params)
          format.html { redirect_to admins_index_path, notice: 'Product was successfully updated.' }
          format.json { render :show, status: :ok, location: @user }
        else
          format.html { render :edit }
          format.json { render json: @user.errors, status: :unprocessable_entity }
        end
      end
  
    end
  
  def set_user
        @user = User.find(params[:id])
    end
  
    def user_params
      params.require(:user).permit(:id)
    end
  </code></pre>
  
  <p>edit.html.erb</p>
  
  <pre><code>&lt;h1&gt;Edit user&lt;/h1&gt;
  
  &lt;%= form_for @user, :as =&gt; :patch, :url =&gt; admins_update_path(id: @user) do |f| %&gt;
  
    &lt;% if @user.errors.any? %&gt;
      &lt;div id="error_explanation"&gt;
        &lt;h2&gt;&lt;%= pluralize(@user.errors.count, "error") %&gt; prohibited this line_item from being saved:&lt;/h2&gt;
  
        &lt;ul&gt;
        &lt;% @user.errors.full_messages.each do |message| %&gt;
          &lt;li&gt;&lt;%= message %&gt;&lt;/li&gt;
        &lt;% end %&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;% end %&gt;
  
    &lt;div class="field"&gt;
        &lt;%= f.label :id %&gt;&lt;br&gt;
      &lt;%= f.text_field :id %&gt;
      &lt;/div&gt;
    &lt;div class="field"&gt;
        &lt;%= f.label :email %&gt;&lt;br&gt;
      &lt;%= f.text_field :email %&gt;
      &lt;/div&gt;
    &lt;div class="field"&gt;
        &lt;%= f.label :admin %&gt;&lt;br&gt;
      &lt;%= f.text_field :admin %&gt;
      &lt;/div&gt;
    &lt;div class="actions"&gt;
      &lt;%= f.submit %&gt;
    &lt;/div&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>The problem is that when i submit the edit , rails gives me an error:</p>
  
  <p><img src="https://i.stack.imgur.com/Sb5tX.png" alt="enter image description here"></p>
  
  <p>Can you help me? i really don t knok how to fix
  thank you</p>
  
  <p>EDIT:</p>
  
  <p><img src="https://i.stack.imgur.com/7XCo9.png" alt="enter image description here"></p>