Reputation: 2179
How can I get my records to be accessed in the following manner
instead of typical blog/:id
fashion?
Upvotes: 1
Views: 74
Reputation: 1545
You can use friendly-id
gem. More info about it in GitHub
Tutorial in railscasts: http://railscasts.com/episodes/314-pretty-urls-with-friendlyid?view=asciicast
Upvotes: 1