forked from samvera/hydra-head
-
Notifications
You must be signed in to change notification settings - Fork 0
Lesson: run the hydra head generator
flyingzumwalt edited this page Apr 8, 2013
·
5 revisions
This lesson is known to work with hydra-head version 6.0.0.
Please update this wiki to reflect any other versions that have been tested.
- Add Hydra functionality to your Rails Application
As with Blacklight, in order to add Hydra's features to your application we need to run the custom Rails generator provided by Hydra. This generator will create and/or modify a handful of files in our application, setting everything up so that we can begin using Hydra's features right away.
$> rails generate hydra:head -f
This overwrites the app/controller/catalog_controller.rb
from blacklight, with one that is appropriate for the solr schema that we are using.
At this point it's a good idea to commit the changes:
$> git add .
$> git commit -m "Ran blacklight and hydra-head generators"
Go on to Lesson: Install hydra-jetty or return to the Dive into Hydra page.