开发者

Rails 3 problem with second, third ActiveRecord methods

开发者 https://www.devze.com 2023-01-23 23:37 出处:网络
Last week this worked but now, for开发者_JS百科 some reason I can only use Model.first. Model.second and Model.third, etc no longer work.

Last week this worked but now, for开发者_JS百科 some reason I can only use Model.first. Model.second and Model.third, etc no longer work.

Did something change in Rails? I keep getting a NoMethodError.


Model.second never worked, I don't think. second and third work on arrays, however. Maybe you used something along the lines of User.all.third the first time.

0

精彩评论

暂无评论...
验证码 换一张
取 消