GithubHelp home page GithubHelp logo

Comments (7)

grimen avatar grimen commented on April 29, 2024

Could you show me your model code?

from devise_facebook_connectable.

grimen avatar grimen commented on April 29, 2024

I mean...what you ask for should work too, so I need to see your devise-call in you affected user-model to see if something could be wrong with the load order of facebook_connectable vs email_authenticatable.

from devise_facebook_connectable.

anrake avatar anrake commented on April 29, 2024

Hi, sorry for the slow reply. Does facebook_connectable need to be declared first?

model:

devise :authenticatable, :confirmable, :recoverable, :registerable, :rememberable, :trackable, :validatable, :facebook_connectable

attr_accessible :email, :password, :password_confirmation, :nickname

controller:

class FbusersController < ApplicationController

def edit
@user = User.find(params[:id])
end

def update
@user = User.find(params[:id])
if @user.update_attributes(params[:user])
flash[:notice] = 'User was successfully updated.'
redirect_to :controller => 'mypage', :action => "home", :id => current_user.visit_page
else
render :action => 'edit'
flash[:notice] = 'User was NOT successfully updated.'
end
end

end

Here is the output in terminal

Processing FbusersController#update (for 127.0.0.1 at 2010-05-07 22:19:36) [GET]
Parameters: {"id"=>"37"}
User Columns (1.6ms) SHOW FIELDS FROM users
User Load (0.3ms) SELECT * FROM users WHERE (users.id = 37)
SQL (0.1ms) BEGIN
SQL (0.1ms) ROLLBACK
Rendering fbusers/edit
Completed in 86ms (View: 50, DB: 2) | 200 OK [http://localhost/fbusers/update/37]
SQL (0.1ms) SET SQL_AUTO_IS_NULL=0

from devise_facebook_connectable.

grimen avatar grimen commented on April 29, 2024

You should try to put :facebook_connectable first.

from devise_facebook_connectable.

anrake avatar anrake commented on April 29, 2024

That doesn't work either. Do you have a working model/sample code?

from devise_facebook_connectable.

djfobbz avatar djfobbz commented on April 29, 2024

i'm having the same issue. cannot save extra user entered information by a fb_session user. it asks for a password & the following error is generated "Current password can't be blank". i did move the :facebook_connectable ahead of :authenticatable

i'm using the following gems:

rails (2.3.5)
devise (1.0.7)
facebooker (1.0.69)
devise_facebook_connectable (0.2.1)
warden (0.10.3)
rails-footnotes (3.6.6)

from devise_facebook_connectable.

grimen avatar grimen commented on April 29, 2024

Oh, sorry I must have been tired when I replied...you need to tell Devise authenticatable-migration to allow null:

t.database_authenticatable :null => true

That should work. Let me know how it goes.

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.