阅读背景:

Ruby on Rails SQL查询返回#

来源:互联网 

I built a small twitter clone in Ruby on Rails. It has a User model, a Micropost model, and a Relationships model. The Relationships model stores followed user ids and corresponding following user ids. I am trying to add a new button that makes the current user follow all other users with a matching parameter in their microposts. I have added that parameter to the micropost model. The problem is, when I query the database in the micropost model to find users with that matching parameter it returnsI built a small twitter clone in Ruby on Rails.




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

分享到: