otwarchive-symphonyarchive/app/controllers/collection_profile_controller.rb

14 lines
332 B
Ruby
Raw Permalink Normal View History

2026-03-11 22:22:11 +00:00
class CollectionProfileController < ApplicationController
before_action :load_collection
def show
unless @collection
flash[:error] = "What collection did you want to look at?"
redirect_to collections_path and return
end
@page_subtitle = t(".page_title", collection_title: @collection.title)
end
end