Hello Rails community,
I have been struggling a bit to try to find a simple solution for this
simple requirement and have not found a DRY - simple way for this.
I have a table called "Posts" (Articles) with the following
How do I make the post_number get incremented for the next record?
John creates the first post --- /viewposts/john/1 -- id 1
John creates another post --- /viewposts/john/2 -- id 2
Jane creates the first post -- /viewposts/jane/1 -- id 3
Jane creates the first post -- /viewposts/jane/2 -- id 4
Thank you in advance for your help!