NameError (uninitialized constant HomesController::Indirizzo): Heroku

697 Views Asked by At

I've deployed my app to Heroku and am getting the the following error:

v2014-08-29T01:59:06.582118+00:00 app[web.1]: NameError (uninitialized constant    HomesController::Indirizzo):

I am using the Indirizzo gem and it's showing as being install on Heroku, but I am still getting that error. I have tried

gem 'Indirizzo', require 'Indirizzo' 

in my gem file as one post suggested but that didnt work either.

1

There are 1 best solutions below

1
On BEST ANSWER

Make a file (config/initializers/require_indirizzo.rb) to require it, like so:

require 'Indirizzo' 

If this does not work, you may try the solution posted by gotva and use this instead:

require 'indirizzo/address'