Created
December 13, 2012 20:12
-
-
Save jonathansimmons/4279401 to your computer and use it in GitHub Desktop.
Add this to your routes.rb to account for periods in a username. (i.e http://website.com/jonathan.simmons)
This file contains hidden or 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
scope ":username", :constraints => { :username => /[0-9A-Za-z\.]+/ }, :as => :user do | |
match '/' => 'users#profile', as: :profile | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment