uninitialized constant Rack::Indexable (NameError)
snoblenet opened this issue · 1 comments
snoblenet commented
I have indexable in the Gemfile
and have confirmed it's loaded in Gemfile.lock
.
In config.ru
I have:
require 'indexable'
use Rack::Indexable
On rails console
or foreman start
I get:
16:16:33 web.1 | config.ru:8:in `block in <main>': uninitialized constant Rack::Indexable (NameError)
16:16:33 web.1 | from /Users/steven/.rvm/gems/ruby-2.1.3/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
16:16:33 web.1 | from /Users/steven/.rvm/gems/ruby-2.1.3/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
16:16:33 web.1 | from config.ru:1:in `new'
16:16:33 web.1 | from config.ru:1:in `<main>'
Why? And how to fix?
Thanks,
Steven.
vikhyat commented
You are supposed to use Indexable::Middleware
, I have updated the documentation to reflect the same.