raw1z / amistad

Adds friendships management into a rails application
http://github.com/raw1z/amistad
MIT License
185 stars 71 forks source link

friends does not work with .paginate! #29

Closed thehungrycoder closed 12 years ago

thehungrycoder commented 12 years ago

hi, i wanted to paginate the friends list. but it does not work. here is my code:

current_user.friends.paginate(:page => params[:page])

it gives an error:

undefined method `paginage' for #Array:0x00000102df2ca0

_pagination works for for pending_invited and pending_invitedby

how can we paginate the friends?

dgarzon commented 12 years ago

@rajuru I dont know if you found an answer, but if you add require 'will_paginate/array' in the top of your controller it should work. Have a good one!

thehungrycoder commented 12 years ago

hi, i have not found any solution. thanks for your input. i will try this one.

thehungrycoder commented 12 years ago

@dgarzon sorry for delay. yes, your solution is working fine. thanks a lot.