I am still newer to Rails... I need to write a self.method on my Product model to find the next Product per position. I am showing 1 Product on a page, and want the next one in the list.
def self.next_product
product = Product. # current product.position +1
end
obviously this won't work... I am still new to writing methods. anyone?
I am using Rbates Railscast 147 and Acts_as_list, I need to figure out how to get the next product
thanks so much