A pre-requisite for this guide is that you have a working Rails application with Blacklight installed into it. If you don’t have a Rails application, you can follow the Rails Getting Started Guide to get started. Once you have create a Rails application, you can follow the Blacklight Getting Started Guide to install Blacklight into your application.
gem 'blacklight', ">= 8.0.0.alpha"
then, update the bundle:
$ bundle install
$ rails generate blacklight:install --marc --solr_version=latest
$ rails db:migrate
$ rails server