aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/things_controller.rb
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <mikisabate@gmail.com>2025-07-01 21:43:13 +0200
committerMiquel Sabaté Solà <mikisabate@gmail.com>2025-07-01 21:48:28 +0200
commit95e5fe8b8fb1e16c71ffbed6681ab8b2203249d4 (patch)
tree0f6dc99d031a499befbbcbb301b7fd1a62af125b /app/controllers/things_controller.rb
parent28399cd9a549cc4edf8c557883c940532821c28d (diff)
downloadoperum-95e5fe8b8fb1e16c71ffbed6681ab8b2203249d4.tar.gz
operum-95e5fe8b8fb1e16c71ffbed6681ab8b2203249d4.zip
Add subtitles to pages
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'app/controllers/things_controller.rb')
-rw-r--r--app/controllers/things_controller.rb2
1 files changed, 2 insertions, 0 deletions
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