1

How can I get my records to be accessed in the following manner

enter image description here

instead of typical blog/:id fashion?

Alex Nikolsky
  • 2,087
  • 6
  • 21
  • 36

1 Answers1

1

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

Mihail Petkov
  • 1,535
  • 11
  • 11