-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uninitialized constant Devise::Models::TwitterOauth #21
Comments
Hey, I'm getting the same here. Did you get some feedback on how to resolve the issue?
|
I got no feedback unfortunately, but when I started using it with devise 1.1.3 and it started working. Give it a try. Also check this here for other options. http://ruby-toolbox.com/categories/api_clients.html Look for projects / gems that are well maintained. |
I have the same problem with devise-1.4.9 :-( Please, reopen the issue! |
I have the same problem with devise-2.0.4. |
Hi dan .. |
same problem with devise-2.0.4. anyone? |
same problem here: Using devise (2.1.0) please reopen. |
i temporarily fixed this issue putting this on my rails app with name config/initializer/twitter.rb |
AFAICT, this is an error in the documentation: replace |
Hello there,
I've installed:
devise (1.4.2)
devise-twitter (0.1.1)
and have followed the instructions on the devise-twitter page.
I'm calling: http://localhost:3000/user/sign_in/twitter
and get
NameError
uninitialized constant Devise::Models::TwitterOauth
app/models/user.rb:12
class User < ActiveRecord::Base
To use devise-twitter don't forget to include the :twitter_oauth module:
e.g. devise :database_authenticatable, ... , :twitter_oauth
IMPORTANT: If you want to support sign in via twitter you MUST remove the
:validatable module, otherwise the user will never be saved
since it's email and password is blank.
:validatable checks only email and password so it's safe to remove
Include default devise modules. Others available are:
:token_authenticatable, :confirmable, :lockable and :timeoutable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :twitter_oauth
Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation, :remember_me
end
What am I missing?
Thanks
Thomas
The text was updated successfully, but these errors were encountered: