Using routing (?) to make GET request in Rails so ID doesn't show
        Posted  
        
            by 
                ale
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by ale
        
        
        
        Published on 2013-06-26T16:04:35Z
        Indexed on 
            2013/06/26
            16:21 UTC
        
        
        Read the original article
        Hit count: 228
        
ruby-on-rails
|ruby-on-rails-3
I have a link in one view myapp/locations that goes to myapp/statistics?id=1 (statistics for location with ID 1) which works fine but it doesn't look pretty.  I think I've seen people do this sort of thing without needing the ?id=1?  I could use a POST but this is not RESTful.  Is there a way I can use routing to allow the user to go to myapp/statistics?id=1 but have the user see myapp/statistics?
Many thanks.
© Stack Overflow or respective owner