In my gemfile I have:
gem 'addressable'
In search_controller.rb:
uri = Addressable::URI.new uri.query_values = {:q => query}
I get this error:
NameError (uninitialized constant SearchController::Addressable):
If i put
require 'addressable/uri'
on top of my controller, it works !!. I have already done "sudo bundle install" and it shows that the addressee is installed. What am I doing wrong?
shane source share