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.

https://github.com/plataformatec/devise


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -