search for: nextpost

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

Did you mean: nexthost
2006 Apr 12
2
Collection has next question
...ce: //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/.