# Help with Rails console to edit text template

**URL:** <https://meta.discourse.org/t/help-with-rails-console-to-edit-text-template/308691>\
**Category:** Self-hosting\
**Tags:** rails-console\
**Created:** [May 20, 2024, 12:52pm UTC](https://meta.discourse.org/t/help-with-rails-console-to-edit-text-template/308691 "2024-05-20T12:52:10Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![nordize](https://avatars.discourse-cdn.com/v4/letter/n/c68b51/32.png) [@nordize](https://meta.discourse.org/u/nordize)\
**Post date:** [May 30, 2024, 2:08am UTC](https://meta.discourse.org/t/help-with-rails-console-to-edit-text-template/308691/8 "2024-05-30T02:08:19Z")

</div>

Actually:

```ruby
to.save(validate: false)

```

… did work just fine.

Edit: The GUI doesn’t show it immediately (I guess sidekiq caching). I did a `./launcher restart app` for that.

For completion:

```ruby
to=TranslationOverride.where(translation_key:"user_notifications.user_watching_category_or_tag.text_body_template").first
to.value="%{username} posted in \"[%{topic_title}](%{base_url}%{url})\"\n\n--"
to.save(validate: false)

```

---

_[View the full topic](https://meta.discourse.org/t/help-with-rails-console-to-edit-text-template/308691)._
