I'm currently using Friendly_ID to create friendly slugs of the form "/post/friendly-name".
e.g., routes.rb reads:
get '/posts/:id', to: 'posts#show'
HOWEVER, I don't want the "/post" element: the public url should simply be "/friendly-name".
For the life of me, I can't find a clean way to do this. The closest potential solution seems to be this which adds a lot of complication to the model for a seemingly simple feature.
Have you tried putting:
get '/:id', to: 'posts#show'
at the end of routes.rb
?
Since routes are matched from top to bottom, this route will only be reached if no other previous matching route was found.
If you put it earlier than at the end, then all sorts of mayhem may occur.