Fork me on GitHub

to_url

If you'd like to use pretty URLs for a model, define to_url() and make it return the URL path that should be used when links to the object are created. See Pretty URLs for details.