RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: cmoel
Anyone know if there's a way to remove the :id version of the url from working? For example, if someone visits /users/:username it brings them to that user's profile. If they visit /users/1 it brings them to the user with :id of 1. Is there a way to prevent this?