我尝试实现日志记录并使用devise,omniauth和facebook注册。现在它看起来像facebook实现工作,但每当我尝试通过Facebook登录hroku网站时,它会出现错误并说:“检查你的日志。 这是我的日志:
<location path="CDN">
<system.webServer>
<staticContent>
<mimeMap fileExtension="*" mimeType="application/octet-stream"/>
</staticContent>
</system.webServer>
</location>
答案 0 :(得分:0)
问题的根源在于:
undefined method `current_sign_in_at' for<User:0x007f134796b0e8>):20150517T18:26:05.357091+00:00 app[web.1]:
我猜你还没有迁移你的数据库来包含那个字段,因为User对象在那里,但字段/方法却没有。