You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a little confused by the dependencies of this gem. Reading the latest from the Sunspot wiki, it appears the proper way to get Sunspot rolling with Rails 3, they recommend the following:
basically, requiring sunspot 1.2.rc3 (or rc4) at a minimum to achieve rails 3 support adequately. However, you gemspec is loading in the sunspot gem AND the sunspot_rails gem, and I don't believe it will actually attempt to load the RCs unless you tell it to explicitly a >= 1.2.rc3
Also, when trying to add the snippet to an initializer, as you described, I get an error about Jammit::Controller class not defining the #constantize method. I am assuming this has something to do with the module_eval + include line, but I am not sure whats going on in the Sunspot::Rails::RequestLifecycle module, just yet.
Any thoughts on all of this? I haven't been able to adequately get mongoid and sunspot and rails 3 working :(
The text was updated successfully, but these errors were encountered:
I spoke with the Sunspot developer in IRC yesterday and It sounds like he is targeting Sunspot 1.2 to be fully friendly with the Rails 3 world. Also, it appears that sunspot_rails and sunspot are the same now. So my advice would be to speak with him in IRC or via e-mail and discuss this, but I'd remove the sunspot_rails dependency, add in only sunspot >= 1.2 once its released. Then, just double check that the initializer stuff still works/is necessary.
Keep me posted on developments please, really happy that this gem is out there!
I'm a little confused by the dependencies of this gem. Reading the latest from the Sunspot wiki, it appears the proper way to get Sunspot rolling with Rails 3, they recommend the following:
http://github.com/outoftime/sunspot/wiki/Using-Sunspot-With-Rails
basically, requiring sunspot 1.2.rc3 (or rc4) at a minimum to achieve rails 3 support adequately. However, you gemspec is loading in the sunspot gem AND the sunspot_rails gem, and I don't believe it will actually attempt to load the RCs unless you tell it to explicitly a >= 1.2.rc3
Also, when trying to add the snippet to an initializer, as you described, I get an error about Jammit::Controller class not defining the #constantize method. I am assuming this has something to do with the module_eval + include line, but I am not sure whats going on in the Sunspot::Rails::RequestLifecycle module, just yet.
Any thoughts on all of this? I haven't been able to adequately get mongoid and sunspot and rails 3 working :(
The text was updated successfully, but these errors were encountered: