I have a blog that use authentication and where users are able to create posts my post is generated via scaffold and want that users when want to edit a posts they will redirected to something like this localhost:3000/posts/jack-stone/the-first-post/edit instead of localhost:3000/posts/the-first-post/edit (jack-stone is the user full name and the-first-post is the post title (I'm using FriendlyId gem for this)) How can i achieve this? my actual routes for posts is resources :posts
Asked
Active
Viewed 60 times
0

Loenvpy
- 899
- 1
- 10
- 30