README.md in hashid-rails-0.2.0 vs README.md in hashid-rails-0.3.0

- old
+ new

@@ -17,15 +17,19 @@ gem 'hashid-rails' ``` And then execute: - $ bundle +```shell +$ bundle +``` Or install it yourself as: - $ gem install hashid-rails +```shell +$ gem install hashid-rails +``` ## Usage Just use `Model#find` passing in the hashid instead of the model id: @@ -40,9 +44,12 @@ ```ruby Hashid::Rails.configure do |config| config.secret = 'my secret' config.length = 6 + # config.alphabet is optional, hashids provides a default + # alphabet that consists of all characters [a-zA-Z0-9] + config.alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' end ``` ## Development