Displaying 2 results from an estimated 2 matches for "my_collection".
Did you mean:
_collection
2006 Jul 04
1
Quick question: Iterate through a collection - no duplicates
Hi, is there a simple way to iterate through collection and not include
duplicates?
Thanks in advance.
Jordan
--
Posted via http://www.ruby-forum.com/.
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