search for: profile_pag

Displaying 1 result from an estimated 1 matches for "profile_pag".

Did you mean: profile_pc
2007 May 10
5
Pagination has many through problems
...for an example that demonstrates what i would like to do, and this morning i thought i''d worked it out, but no....here''s what i have: Controller ========== class ProfilesController < ApplicationController def friends current_user.profile.friends end def list_friends @profile_pages, @profiles = paginate( friends, :per_page => 10) end end Models ====== class Profile < ActiveRecord::Base has_many :friendships has_many :friends, :through => :friendships end class Friendship < ActiveRecord::Base belongs_to :profile belongs_to :friend, :class_name...