阅读背景:

使用jquery和ajax使用Ruby on Rails更新部分

来源:互联网 

I've had this issue for days and been unable to figure it out... I have 'Like' and 'Unlike' button. When a user "likes" a post, the updates should occur in the data base and then the button should flip to "unlike". Everything works on the backend - the database updates just fine, however the button never switches from "Like" to "Unlike". If I manually refresh the page it will be switched, but it doesn't happen without the refresh. I do not have any errors logged or in the console.I've had this issue for days and been unable to




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: