Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Confused about this gem and Rails 3 #4

Open
perezd opened this issue Sep 23, 2010 · 2 comments
Open

Confused about this gem and Rails 3 #4

perezd opened this issue Sep 23, 2010 · 2 comments

Comments

@perezd
Copy link
Contributor

perezd commented Sep 23, 2010

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 :(

@jugyo
Copy link
Owner

jugyo commented Sep 24, 2010

I see.
I will try to fix this problem.
Maybe sunspot_mongoid will support only rails3.

@perezd
Copy link
Contributor Author

perezd commented Sep 24, 2010

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants