Add this line to your application's Gemfile:
gem "railsfooter", github: "emory-libraries/rails-footer"And then execute:
$ bundle installFor version 1.0, in the main application file (app/views/layouts/application.html.erb) place footer just above the with
<%= render "railsfooter/footer" %>and in the header, with the other stylesheet and js tags
<%= stylesheet_link_tag "railsfooter/application.css" %>If the app is using < Rails 8, add
//= link railsfooter/application.cssto app/assets/config/manifest.js
In cli:
rails g emory_libraries_footerwill copy over a blank/test template footer_links partial. Fill in the blanks and duplicate the <li> lines to build the footer menus.
For an app with a docker container (like dlp-curate), might need to docker compose down -v and docker compose up again after install in order for it to recognize the app path.
Some apps, for example, dlp-curate as of August 2026, don't use application.html as the root or homepage. Can look in routes.rb to determine which file is the root and place the footer render and the stylesheet header tag in that file, not layouts/application.