Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uninitialized constant Model::AlgoliaSearch

I have an issue including Algolia module in my rails app I have included gem "algoliasearch-rails", ran bundle install and added in config/initializers an algoliasearch.rb file with api id and key

#model.rb

include AlgoliaSearch

algoliasearch do
 attribute :name, :description, :content, :is_public => true
end
like image 465
Zonblar Avatar asked Nov 29 '25 16:11

Zonblar


1 Answers

I think you should restart your rails server ;)

like image 52
hugo how choong Avatar answered Dec 02 '25 06:12

hugo how choong



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!