not unique ids in a route in Rails
- by Victor P
In a blog in Rails I want to have paths like
http://mydomain.com/posts/28383/comments#21
This is the 21st comment of the 28383th post. The 21 is not an unique id, but the pair 28383, #21 is unique.
How can I do this in Rails? Do I have to change the routes? the model?
I will be very thankful if you can point me in the right direction
Thanks