search for: find_next_item

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

2006 Apr 12
2
Collection has next question
...ction and then add that an object. For instance: //Returns all the posts into a collection called posts @posts = Post.find(:all) //Returns a specific post based on an id @post = Post.find(params[:id]) //How can i return the next post something similar to below. Do i need to write a custom Post.find_next_item(params:id) in the post model? @nextpost = Post.find(params[:id]).Next Can anyone point me in the right direction? -- Posted via http://www.ruby-forum.com/.