Comments (7)
Could you show me your model code?
from devise_facebook_connectable.
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.
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.
You should try to put :facebook_connectable first.
from devise_facebook_connectable.
That doesn't work either. Do you have a working model/sample code?
from devise_facebook_connectable.
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.
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)
- 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
- facebook_sign_in_link helper causes NoMethodError in Ruby 1.9.1 HOT 5
- 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
- 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.