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:
Can anybody think of a solution?Code:
@posts = Post.paginate(:order => "created_at DESC", :page => params[:page])