Skip to content

Creating a musical work

Bess Sadler edited this page May 8, 2017 · 5 revisions

Generate the work

rails generate hyrax:work MusicalWork

If you've checked out the day1/start branch, this has already been done.

Step 1: Create (musical) work

/day1/step1/begin

  • spec test for work

Hints and Tips

git reset --hard day1/step1/begin
bundle exec rake hydra:test_server
bundle exec rspec

/day1/step1/complete

  • new properties for genre, composer, and composition date.

Step 2: Add new properties to display and remove unused ones

/day1/step2/begin

  • feature test for work show page

/day1/step2/end

  • custom presenter with spec test

Step 3: Add new properties to form to enable create and update

/day1/step3/begin

  • feature test for edit page

/day1/step3/end

  • custom form and spec test

Step 4: Update search results page

/day1/step4/begin

  • feature test for search page

/day1/step4/end

  • updates to CatalogController