D
D
Denis Savitsky2011-12-04 16:44:23
Ruby on Rails
Denis Savitsky, 2011-12-04 16:44:23

Authorization with auth_token in Devise?

Authentication with auth_token in Devise. How? I do everything according to the GitHub guide , RubyDoc - I get an error

NameError (undefined local variable or method `ensure_authentication_token' for #<User:0x007ffe28848680>)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sl_bug, 2011-12-04
@qweewq

:token_authenticatable was forgotten in the model

I
int03e, 2011-12-04
@int03e

before_save :ensure_authentication_token

In the model?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question