otwarchive-symphonyarchive/app/controllers/collection_profile_controller.rb
2026-03-11 22:22:11 +00:00

13 lines
332 B
Ruby

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