Could not find devise mapping for path “/sessions/user” devise log in error

前端 未结 5 2029
名媛妹妹
名媛妹妹 2021-02-19 04:43

Very frustrating for the last few days.

I have a rails app with Devise installed where I generated a new User model and I generated Devise views as well.

This h

5条回答
  •  情歌与酒
    2021-02-19 05:21

    Be careful if you nave namespaced routes to declare the devise_scope a little different:

    namespace :api, defaults: {format: 'json'} do 
      namespace :v1 do 
        devise_scope :api_v1_user do
          ...
        end
      end
    end
    

提交回复
热议问题