search for: the_collect

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

2007 Sep 04
3
Finding the position on an item in a collection
This feels like it should be easy but i can''t work it out: if i have a collection of stories, ordered by (for example) date, then how do i find out the position of the story with id = (eg) 23 in the collection? I guess this is a ruby question rather than a rails-specific question, but maybe there''s a rails way... -- Posted via http://www.ruby-forum.com/.