![]() |
Merge three models for latest content on homepage?
Hey, guys!
I have three models for a blog here that I want to merge to find the latest content for the homepage.
What I have so far is this: Code:
@posts = Post.paginate(:order => "created_at DESC", :page => params[:page])Thanks, Brad. :D |
| All times are GMT +1. The time now is 07:05 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.