I created my first app using scaffold. My question is it possible to
paginate the show.rhtml so instead of paginating in the list view it
does it in show.rhtml. I keep getting ?page=id appended to my urls.
ex (http://xxxxx/app/show/1?page=2)
this is what it looks like now
def show
@recipe = Recipe.find(params[:id])
conditions = [“title LIKE ?”, “%#{@params[:query]}%”] unless
@params[:query].nil?
@total = Recipe.count(:conditions => conditions)
@recipe_pages, @recipes = paginate :recipes, {
:per_page => 1,
:conditions => conditions }
end