Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

绑定Github有些小问题 #69

Closed
ZPVIP opened this Issue · 1 comment

2 participants

@ZPVIP

绑定Github有些小问题
app/views/account/edit.html.erb
提示应该是一个“点击解除绑定" 一个"点击绑定", 原文是两个“点击解除绑定"

因为那个location问题(http://ruby-china.org/topics/4329 9楼), 会也在解除绑定的时候出错。

另外, 现在解除绑定不能成功,在文件app/controllers/users_controller.rb中, 也要改一下

current_user.authorizations.destroy_all(:conditions => {:provider => provider})

要改为

current_user.authorizations.destroy_all({provider: provider})

参看: http://mongoid.org/en/mongoid/docs/persistence.html

Github issue: #69

@huacnlee huacnlee referenced this issue from a commit
@huacnlee huacnlee OAuth unbind bug fix. #69 5e3abbb
@huacnlee huacnlee closed this
@huacnlee
Owner

谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.