GithubHelp home page GithubHelp logo

Comments (5)

grimen avatar grimen commented on April 28, 2024

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.

szimek avatar szimek commented on April 28, 2024

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.

szimek avatar szimek commented on April 28, 2024

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.

grimen avatar grimen commented on April 28, 2024

OK, thanks!

from devise_facebook_connectable.

grimen avatar grimen commented on April 28, 2024

Fixed old bug where incorrect scope gets auto-detected. Closed by 2d9b2d7

from devise_facebook_connectable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.