I have a Post and Comments table.

Post has many comments, and Comment belongs to a post.

I want to have primary keys which start at 0 for a Post, so that I can 
access comments in a REST-ful manner as:

/posts/1/comments/1/posts/2/comments/1

How can I achieve that with Rails 3 and Sequel?

To vote your answer up on StackOverflow, please go 
to: 
http://stackoverflow.com/questions/23942163/reset-pk-number-based-on-association

Thanks,

Kenny

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to