scientist-softserv / adventist_knapsack

Apache License 2.0
1 stars 0 forks source link

🧹 Get resources route working #15

Closed kirkkwang closed 9 months ago

kirkkwang commented 9 months ago

This commit will get the resources route working. It will also add a HykuKnapsack::PagesController which inherits from Hyrax::PagesController so the route won't throw a namespace error. Further down the line, we needed to decorate the ContentBlock model to add the resources key. I am doing this with no change to Hyku although we may want to add the #name_registry method to Hyku as a convenience for overrides since we can't add to a frozen hash.

ref: https://github.com/scientist-softserv/adventist_knapsack/issues/313

Notes

This gets the /resources route to load but there are problems in erb files down the line that are currently being addressed. In an effort to not step on toes and letting the scope of this PR get too big, I am stopping here.