DEV Community

Discussion on: Guide to devise_token_auth: Simple Authentication in Rails API

Collapse
 
masroorhussainv profile image
Masroor Hussain

I had to do
require 'devise_token_auth' in the routes.rb file, otherwise I was getting this error:
NoMethodError (undefined method `mount_devise_token_auth_for' for #ActionDispatch::Routing::Mapper:0x...)

Github issue here

Collapse
 
risafj profile image
Risa Fujii

Thanks for reading and for the comment! I'll add a note in the post :)

Some comments have been hidden by the post's author - find out more