Skip to content
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

facebook_uid? problem #3

Closed
zlu opened this issue Jan 31, 2011 · 2 comments
Closed

facebook_uid? problem #3

zlu opened this issue Jan 31, 2011 · 2 comments

Comments

@zlu
Copy link

zlu commented Jan 31, 2011

this is in development env with postgresql.

i filled all the user information at sign-up page and got this error:

NoMethodError in UsersController#create

undefined method `facebook_uid?' for #User:0x10345a908

Rails.root: /Users/zlu/projects/sugar
Application Trace | Framework Trace | Full Trace

app/models/user.rb:46:in _callback_before_5129' app/controllers/users_controller.rb:181:increate'

Request

Parameters:

{"authenticity_token"=>"P7hcCVbjdPlspxIaMGW0Di4eXjT0YSYu9S0if1YiQpo=",
"utf8"=>"\342\234\223",
"user"=>{"realname"=>"",
"location"=>"",
"confirm_password"=>"[FILTERED]",
"username"=>"zlu",
"password"=>"[FILTERED]",
"email"=>"zlu@me.com"}}

@zlu
Copy link
Author

zlu commented Jan 31, 2011

it was because my db:migrate failed. i'm using postgres and there are a few places in db migration that specified default value for boolean field to be 1 or 0, which is not allowed. now that's fixed i could sign up.

@elektronaut
Copy link
Owner

Thanks for the feedback, I'll get the migrations fixed.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants