Add this line to your application's Gemfile:
gem 'r4r'
And then execute:
$ bundle
Or install it yourself as:
$ gem install r4r