title: param is missing or the value is empty
body: <p>I am new to Rails. Getting the error below. I understand what the issue is, but not sure how to fix it? </p>
  
  <p>Error - param is missing or the value is empty: customer</p>
  
  <pre><code>  def customer_params
        params.require(:customer).permit(
          :first_name, 
          :last_name, 
          :email, 
          :password, 
          :password_confirmation)
      end
     end
  </code></pre>
  
  <p>DetailsController.rb</p>
  
  <pre><code> class My::Account::DetailsController &lt; MyController
  
   def show
     @customer = current_user
   end
  
   def update
     @customer = current_user
     @customer.update_attributes(customer_params)
     if @customer.errors.any?
       render :action =&gt; :show
     else
       redirect_to my_account_details_path, :notice =&gt; 'Account details updated'
     end
      end
  
     private
  
     def customer_params
        params.require(:customer).permit(
          :first_name, 
          :last_name, 
          :email, 
          :password, 
          :password_confirmation)
      end
     end
  </code></pre>
  
  <p>View </p>
  
  <pre><code> .account.container
  .row
      = render :partial =&gt; '/my/account/sidebar'
      .section
          %h2 Your account details
  
          = simple_form_for @customer, :url =&gt; my_account_details_path, :method =&gt; :put, :html =&gt; { :class =&gt; 'form-horizontal'} do |form|
              .field
                  = form.input :first_name
  
              .field
                  = form.input :last_name
  
              .field
                  = form.input :email, :as =&gt; :email
  
              %hr
              %h4 Leave password fields blank to keep the existing password
              %hr
  
              .field
                  = form.input :password, :input_html =&gt; { :value =&gt; '' }
              .field
                  = form.input :password_confirmation, :input_html =&gt; { :value =&gt; '' }
  
              .field-actions
                  %button.btn.btn-primary{type: "submit"} Save
  </code></pre>