# Renombrar etiquetas en la consola de rails

**URL:** <https://meta.discourse.org/t/renaming-tags-in-the-rails-console/267375>\
**Category:** Product Support\
**Tags:** rails-console, tags\
**Created:** [6 Junio, 2023 11:07 UTC](https://meta.discourse.org/t/renaming-tags-in-the-rails-console/267375 "2023-06-06T11:07:43Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [6 Junio, 2023 14:11 UTC](https://meta.discourse.org/t/renaming-tags-in-the-rails-console/267375/2 "2023-06-06T14:11:52Z")

</div>

Accede a tu servidor por SSH

```plaintext
cd /var/discourse
./launcher enter app
rails c

t = Tag.find_by_name('oldname')
t.name = 'newname'
t.save

```

---

_[View the full topic](https://meta.discourse.org/t/renaming-tags-in-the-rails-console/267375)._
