title: Multiple require & permit strong parameters rails 4
body: <p>In the below case, i am trying to use strong parameters. I want to require <code>email_address, password</code> and permit <code>remember_me</code> fields.</p>
  
  <p>But using like below it only allows the <strong>LAST line</strong> in the method Ex:- In below case it only take <code>params.permit(:remember_me)</code></p>
  
  <pre><code>  private
  
    def registration_params
      params.require(:email_address)
      params.require(:password)
      params.permit(:remember_me)
    end
  </code></pre>
  
  <p>Another Ex:- In this below case, if i rearrange it like below it will take only <code>params.require(:email_address)</code> where am i going wrong ?</p>
  
  <pre><code>  def registration_params
      params.require(:password)
      params.permit(:remember_me)
      params.require(:email_address)
    end
  </code></pre>
  
  <p><strong>UPDATE</strong>
  Params hash be like</p>
  
  <pre><code>{
                "utf8" =&gt; "✓",
       "email_address" =&gt; "test1@gmail.com",
            "password" =&gt; "password123",
         "remember_me" =&gt; "true",
              "commit" =&gt; "Log in",
          "controller" =&gt; "registration",
              "action" =&gt; "sign_in"
  }
  </code></pre>