I am trying to create clean urls in rails. I have installed PermalinkFu and I can generate the links just fine. What I would like to do is keep my RESTful resource. Is there a way I can overload:
map.resources :location
to return :permalink variable instead of :id?
Similar to how I can create:
map.connect 'location/:permalink' :controller => 'location', :action => 'show'
A side note: What is the best practice for handling permalinks, should they only used to display the view/show action then use the :id for edit/destroy/etc? And should I even be concerned with the controller using :id instead of :permalink as a variable name?