Created
November 20, 2011 22:57
-
-
Save brennovich/1381103 to your computer and use it in GitHub Desktop.
Decent URL's
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def to_param | |
"#{id}-#{attribute.downcase.parameterize}" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment