failures linked to association extensions
-
Chris Wanstrath
- Assigned user changed from Chris Wanstrath to Mislav
- State changed from new to open
-
Mislav
- State changed from open to invalid
Doh! You're using it all wrong. Do something like this
has_many :prints, :through=> :taggings, :source=> :print, :uniq=>true do def find_for_user(user, params = {}) with_scope :find => { :conditions => ["taggings.user_id = ?", user.id] } do find :all, params end end endThen you can:
@tag.prints.paginate_for_user(current_user)Note that you'll probably have to do the count yourself.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.