I tried to get Devise running with Ajax, found some articles for that. Most of them only cover 1/10 of the work and most of the work is a complete rewrite of Devise (they copy the source of the controllers into their own and modify them). If you don't need Devise I would recommend that you only use Warden or implement your own Auth solution (took me about 1/10 of the time I tried to get Device running). If this is an option, search for RailsCasts and authentication from scratch.
Am Sonntag, 12. April 2015 08:55:42 UTC+2 schrieb Kingsley Simon: > > Trying to get authentication on my app with Rails and Devise. AngularJS is > the front-end and Rails is the backend. Based on this question posted in SO > http://stackoverflow.com/questions/29585603/the-action-new-could-not-be-found-for-devisetokenauthregistrationscontroller > > I keep getting the error > The action 'new' could not be found for > DeviseTokenAuth::RegistrationsController > <http://stackoverflow.com/questions/29585603/the-action-new-could-not-be-found-for-devisetokenauthregistrationscontroller> > Using this https://github.com/lynndylanhurley/devise_token_auth but it > seems quite a number of people have asked about this error but i cant seem > to find a solution. > > I have tried to switch my controllers to be custom but i end up getting > this error instead *uninitialized constant DeviseAuthToken* > > Any help will be appreciated > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
