search for: member_pag

Displaying 2 results from an estimated 2 matches for "member_pag".

Did you mean: member_flag
2006 Jun 21
7
acts_as_taggable and paginate?
...what my method looks like that takes in a tag name, finds all the members that share the tag and then displays all the members. Nothing too fancy at the moment... def show_all_tags tag_name = params[:id] @tagged_members = Tag.find_by_name(tag_name).tagged end Doing the standard: @tagged_member_pages, @tagged_members = paginate :member, :per_page => 12 displays ALL the members in the DB. Has anyone conquered such an issue like this? Thank you, Dave Hoefler -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachm...
2005 Dec 16
13
How to pass a collection to paginate?
There must be a better way to write this code: @project_pages, @projects= paginate :project, :per_page => 10, :conditions => ["account_id = ?", account] ?! If only I could pass the sub-collection account = ... @projects = account.project to paginate, instead of letting it extract it with a find :all + sql conditions Alain. -- Posted via