Merge two ActiveRecord arrays and order by created_at

后端 未结 2 1734
误落风尘
误落风尘 2021-01-30 17:17
books = Book.find(:all)
articles = Articles.find(:all)

By reading from http://guides.rubyonrails.org/layouts_and_rendering.html I knew that I could do

2条回答
提交回复
热议问题