not unique ids in a route in Rails
        Posted  
        
            by Victor P
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Victor P
        
        
        
        Published on 2010-03-25T02:13:23Z
        Indexed on 
            2010/03/25
            2:23 UTC
        
        
        Read the original article
        Hit count: 352
        
ruby-on-rails
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
© Stack Overflow or respective owner