relation专题提供relation的最新资讯内容,帮你更好的了解relation。
我一直在关注Michael Heartl教程来创建一个跟随系统,但我有一个奇怪的错误:“未定义的方法`find_by’为[]:ActiveRecord :: Relation”.我正在使用设计进行身份验证. 我的观点/users/show.html.erb看起来像这样: . . . <% if current_user.following?(@user) %> <%= render 'un