From 95e5fe8b8fb1e16c71ffbed6681ab8b2203249d4 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 1 Jul 2025 21:43:13 +0200 Subject: Add subtitles to pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- app/controllers/things_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers/things_controller.rb') diff --git a/app/controllers/things_controller.rb b/app/controllers/things_controller.rb index e994a3d..f9e7674 100644 --- a/app/controllers/things_controller.rb +++ b/app/controllers/things_controller.rb @@ -9,6 +9,7 @@ class ThingsController < ApplicationController def new @thing = Thing.new + @subtitle = I18n.t('activerecord.models.thing') end def edit; end @@ -59,6 +60,7 @@ class ThingsController < ApplicationController def set_thing @thing = Thing.find(params[:id]) + @subtitle = @thing.title end def thing_params -- cgit v1.2.3