From ccf588845a6e595d1c9b2726a05eddd34bc92488 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Wed, 20 Mar 2024 13:59:15 +0100 Subject: tags: added a way to update tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's useful to just rename tags which have quite some references that you don't want to nuke. Signed-off-by: Miquel Sabaté Solà --- config/locales/ca.yml | 2 ++ config/locales/en.yml | 2 ++ config/routes.rb | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/locales/ca.yml b/config/locales/ca.yml index a394caa..b9f9b7c 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -108,9 +108,11 @@ ca: title: Etiquetes new: Etiqueta nova new-action: nova + update: Reanomena l'etiqueta none: Encara no hi ha cap etiqueta. Pots crear-ne una fent click create-success: Etiqueta creada correctament + update-success: S'ha canviat el nom de l'etiqueta correctament destroy-success: Etiqueta esborrada correctament things: diff --git a/config/locales/en.yml b/config/locales/en.yml index 9cef5f8..e720a0c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -107,10 +107,12 @@ en: tags: title: Tags new: New tag + update: Rename tag new-action: new none: You have not created any tags. You can do so by clicking create-success: Tag was successfully created + update-success: Tag was successfully updated destroy-success: Tag was successfully deleted things: diff --git a/config/routes.rb b/config/routes.rb index 1e5eedb..fe9ee96 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -12,7 +12,7 @@ Rails.application.routes.draw do resource :exports, only: %i[new show] end - resources :tags, only: %i[index new create destroy] + resources :tags resources :things, except: %i[index] do resources :comments, only: %i[create update destroy] end -- cgit v1.2.3