Created
March 1, 2009 19:09
-
-
Save dira/72437 to your computer and use it in GitHub Desktop.
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
# model: | |
def to_param | |
login.parameterize | |
end | |
# for controllers (the User controller and all the controllers that are | |
# nested under it, or in other namespaces): replace User.find(params[:id]) with | |
User.find_by_login(params[:id]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment