Comments (5)
That line tries to auto-detect scope. Uhm...without the form you won't get a Devise session, logging in on Facebook is just not enough. What version of Devise you use? Devise moved forward quite fast so the API might have changed, will have a look later on. Use Devise <= 1.0.0, I won't support newer one yet myself as it's built for Rails 3 only and Rails is....beta.
from devise_facebook_connectable.
I'm not saying that this line should be removed completely :)
I'm just saying that it should be changed from:
scope = ::Devise::Mapping.find_by_path(request.path).to rescue scope
which for url /users/sign_up returns User class, to:
scope = ::Devise::Mapping.find_by_path(request.path).name rescue scope
which returns :user symbol :)
from devise_facebook_connectable.
I edited my original post to include a patch, but it got lost somehow... Here it is again: szimek/devise_facebook_connectable@1fa5b5c
from devise_facebook_connectable.
OK, thanks!
from devise_facebook_connectable.
Fixed old bug where incorrect scope gets auto-detected. Closed by 2d9b2d7
from devise_facebook_connectable.
Related Issues (20)
- Connect existing accounts HOT 1
- two models with devise :authenticatable HOT 12
- mongo_mapper throws an error with save_with_validation HOT 3
- callbacks not working for me (MongoMapper) HOT 9
- `include': wrong argument type Class (expected Module) (TypeError) HOT 4
- facebook cookie and auto login problems HOT 20
- How does this work? HOT 5
- sign_out not working with passenger HOT 12
- Devise 1.0.6 breaks facebook_connectable HOT 2
- rails 3.0.0-beta3 and devise 1.1.rc1 HOT 2
- edit user profile question HOT 7
- Facebooker::Session::SessionExpired on User.populate(*fields) HOT 1
- HAML Issues HOT 4
- facebook_sign_out_link always use the user model? HOT 2
- not working after clearing database
- before_facebook_connect(fb_session) HOT 1
- facebook.yml callback_url has wacky side effects HOT 1
- Problem signing out with facebooker 1.0.75 HOT 2
- uninitialized constant ActiveSupport::CoreExtensions (NameError)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devise_facebook_connectable.