ruby on rails - The action 'new' could not be found for DeviseTokenAuth::SessionsController -
set authentication angularjs , ruby on rails, use gem devise_token_auth. when run test rspec have same error
failure/error: unable find matching line backtrace abstractcontroller::actionnotfound: action 'new' not found devisetokenauth::sessionscontroller
i saw different sites try new controller example: class devise::sessionscontroller < applicationcontroller didn't me.
going purely error supplied,
create sessions controller:
class sessionscontroller < devise::sessionscontroller def new end end
you can either manually or run:
rails generate devise:controllers [scope]
from within app directory in terminal. (replace scope model devise interacts with, e.g user).
also, give read.
Comments
Post a Comment