I have the Articles controller and for displaying the respective article I use the basic routes – example.com/articles/4.
I would like to change this URL format to example.com/4-article-name or example.com/article-name-4.
Could anyone give me a tip, how to do that?
Thanks
Ryan Bates(Railscast.com) seems to have done an episode that solves your problem:
See: http://railscasts.com/episodes/314-pretty-urls-with-friendlyid?view=asciicast