绑定Github有些小问题 #69

Closed
ZPVIP opened this Issue Jul 16, 2012 · 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 added a commit that referenced this issue Jul 17, 2012
@huacnlee huacnlee OAuth unbind bug fix. #69 5e3abbb
@huacnlee huacnlee closed this Jul 17, 2012
@huacnlee
Ruby China member

谢谢

@testerhome testerhome pushed a commit that referenced this issue Dec 30, 2013
@huacnlee huacnlee OAuth unbind bug fix. #69 f04a948
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment