Polymorphic Routes - Ryan Bigg
What this would do is dutifully redirect to the show action inside the PostsController and pass along the id parameter with a value of whatever @post.id returns. Typical 302 response.
Polymorphic Routes - Ryan Bigg #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/polymorphic-routes-ryan-bigg