title: Error: No template found for XxxController#update, rendering head :no_content
body: <p>Hello i have the follow code working in development.</p>
  
  <pre><code>class SetupController &lt; ApplicationController
    def update
      if current_user.update_attributes(user_params)
        flash[:success] = 'Profile complete'
        redirect_to user_profile_path(current_user)
      else
        flash[:danger] = errors(current_user)
        redirect_to setup_users(current_user)
      end
    end
  end
  
  get 'setup' =&gt; 'setup#edit'
  patch 'setup' =&gt; 'setup#update'
  </code></pre>
  
  <p>However in production I get the following error. The page doesn't do anything. It doesn't redirect. No flash. No nothing.</p>
  
  <pre><code>2017-04-09T01:32:16.299188+00:00 app[web.1]: Processing by SetupController#update as HTML
  2017-04-09T01:32:16.299340+00:00 app[web.1]:   Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"9le9H2d1bjNgJyHQDXxuHarF0WOO3acl5jar9txe4Ws2ZaWuzmQ13kQG9HSce3RJ4HksZ5eCQyfuUZPwkDESxw==", "user"=&gt;{"email"=&gt;"joseph@netengine.com.au", "country"=&gt;"AU"}, "commit"=&gt;"Save", "username"=&gt;"joey_knp"}
  2017-04-09T01:32:16.357734+00:00 app[web.1]: No template found for SetupController#update, rendering head :no_content
  2017-04-09T01:32:16.358169+00:00 app[web.1]: Completed 204 No Content in 59ms (ActiveRecord: 0.0ms)
  </code></pre>
  
  <p>Does anyone know how to fix this?</p>
  
  <p>Thanks for any help in advance.</p>