title: NoMethodError for new action
body: <p>I have a simple scenario that is causing me grief:</p>
  
  <p><strong>SMSVerificationsController</strong></p>
  
  <pre><code>class SmsVerificationsController &lt; ApplicationController
    def new
    end
  end
  </code></pre>
  
  <p><strong>Route</strong></p>
  
  <pre><code>  get 'sms_verifications/new'
  </code></pre>
  
  <p><strong>Erb</strong></p>
  
  <pre><code>link_to sms_verifications_new_path
  </code></pre>
  
  <p>All of the above are straight forward however the link is returning the following error:</p>
  
  <pre><code>NoMethodError in SmsVerificationsController#new
  undefined method `has_content_type?' for nil:NilClass
  </code></pre>
  
  <p>The error also show the following code:</p>
  
  <pre><code>  # Checks if we should perform parameters wrapping.
    def _wrapper_enabled?
      return false unless request.has_content_type?
  
      ref = request.content_mime_type.ref
      _wrapper_formats.include?(ref) &amp;&amp; _wrapper_key &amp;&amp; 
      !request.request_parameters[_wrapper_key]
  
  actionpack (5.1.1) lib/action_controller/metal/params_wrapper.rb:283:in `_wrapper_enabled?'
  </code></pre>