Basically I currently have this system where there are categories, and
tutorials; obviously categories have many tutorials, and every
tutorial must belong_to a category.
The tutorials are then displayed in order of there id (auto-
incrementing) in their categories show method.
The thing is, I want to create a link that goes from one tutorial
(with an id of 10 for example) to the next tutorial in that category
(which might not have an id of 11, as I create different tutorials at
different times, therefore creating different ids for two tutorials
seemingly next to eachother in order).
Obviously I know I will need something like this:
<%= link_to 'Next lesson....', %>
but I just don't know how I can manage it..
By the way, every tutorial has a: category_id to determain which
category they are in (this is an integer).
Thanks In Advance,