Reputation: 11373
I have never had a problem with Sinatra reloader. I added it in my .rb file like this
require 'sinatra/reloader' if development?
Even the documentation validates this http://www.sinatrarb.com/contrib/reloader
But I am still getting the error
Upvotes: 1
Views: 1272
Reputation:
There's no gem named "sinatra/reloader", but "sinatra-reloader": https://rubygems.org/gems/sinatra-reloader
Note: reloader is part of sinatra contrib which in turns has been merged upstream to https://github.com/sinatra/sinatra
Upvotes: 2
Reputation: 1681
The problem is that sinatra/reloader
is part of sinatra-contrib
.
There are two ways to install this.
If you're using bundler in your sinatra app, open your Gemfile
and add this:
gem 'sinatra-contrib'
If not, then just install it manually gem install sinatra-contrib
. Then require it on your project by adding require 'sinatra/reloader
Upvotes: 3