title: undefined method `with_indifferent_access' for nil:NilClass
body: <p>I am trying to override reset password controller with devise but anyhow it is giving me this error. I can't understand what is the actual reason. I am sharing my code</p>
  
  <p><strong>passwords_controller.rb</strong></p>
  
  <pre><code>class Api::V1::PasswordsController &lt; Devise::PasswordsController
  
      skip_before_action :require_login!
  
  
      def new
          @user = User.new
      end
  
      def create
        @user = User.send_reset_password_instructions(params[:user])
        if successfully_sent?(@user)
          head :status =&gt; 200
        else
          render :status =&gt; 422, :json =&gt; { :errors =&gt; @user.errors.full_messages }
        end
      end
  
  end
  </code></pre>
  
  <p><strong>routes</strong></p>
  
  <pre><code> devise_for :users,controllers: { 
      sessions: 'api/v1/sessions',
      registrations: 'api/v1/registrations',
      :passwords =&gt; 'api/v1/passwords'
  
    }
  </code></pre>
  
  <p>Postman</p>
  
  <p>I am hitting this URL with paramaters</p>
  
  <pre><code>http://localhost:3000/users/password
  Method - Post
  Body (raw)
  
      {
          "email": "some-email@gmail.com"
      }
  </code></pre>
  
  <p>Getting this error <strong>NoMethodError (undefined method `with_indifferent_access' for nil:NilClass):</strong></p>