Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
08-16-2011, 03:12 PM #1
- Join Date
- May 2009
- Glastonbury, UK
- Thanked 0 Times in 0 Posts
Merge three models for latest content on homepage?
I have three models for a blog here that I want to merge to find the latest content for the homepage.
To make this even more complicated would like to paginate the results using will_paginate.
What I have so far is this:
@posts = Post.paginate(:order => "created_at DESC", :page => params[:page])