Hi you all, I have an app where I do two "finds" in different tables:
@results_m = Man.find(:all) @results_w = Woman.find(:all) I can paginate each of one with paginate: @results_m = Man.paginate([params page stuff here...]) @results_w = Woman.paginate([params page stuff here...]) However, I want to show the two kinds of results in the same view and with the pagination as if they were only from a single type of resource. Can will_paginate do the trick somehow? (maybe something like @results = @results_m + @results_w, which of course also sums the total records in Man table and Woman table). Or should I do it manually? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---