blacklight
blacklight copied to clipboard
Dccument Name Error
when following the Quick strat guide, after running the 'rails server' command, the following error is show:
/.rvm/gems/ruby-3.0.0/gems/blacklight-7.23.0.1/lib/blacklight/solr/document.rb:19:in `module:Document': uninitialized constant Blacklight::Document (NameError)
any ideas how to solve this?
thanks
I think this is an issue with the blacklight-marc gem; I don't know if it is compatible with Ruby 3 yet. Could you please try running through the steps listed under "The Hard Way" here: https://github.com/projectblacklight/blacklight/wiki/Quickstart#creating-a-new-application-the-hard-way, and don't pass in that --marc
flag when you get to the blacklight:install
step?
Also, could you please share which version of Rails you are working with? Thank you!
Edit: perhaps blacklight-marc is compatible with ruby 3; I do see that it has passing tests on ruby 3 in CI.
hi @sandbergja ,
we used the specific versions of ruby and rails and all went ok
thanks