Skip to content

Instantly share code, notes, and snippets.

View jonathansimmons's full-sized avatar

Jonathan Simmons jonathansimmons

View GitHub Profile
@jonathansimmons
jonathansimmons / gist:1c653d4334071b8efc89
Last active August 29, 2015 14:05
Onename.io verification
Verifying that +jonathansimmons is my Bitcoin username. You can send me #bitcoin here: https://onename.io/jonathansimmons
@jonathansimmons
jonathansimmons / Periods in username
Created December 13, 2012 20:12
Add this to your routes.rb to account for periods in a username. (i.e http://website.com/jonathan.simmons)
scope ":username", :constraints => { :username => /[0-9A-Za-z\.]+/ }, :as => :user do
match '/' => 'users#profile', as: :profile
end