# Getting the NoMethodError error when editing the topic due to my plugin

**URL:** <https://meta.discourse.org/t/getting-the-nomethoderror-error-when-editing-the-topic-due-to-my-plugin/59471>\
**Category:** Development\
**Created:** [19. März 2017 um 07:55 UTC](https://meta.discourse.org/t/getting-the-nomethoderror-error-when-editing-the-topic-due-to-my-plugin/59471 "2017-03-19T07:55:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![gdpelican](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gdpelican/32/81308_2.png) [@gdpelican](https://meta.discourse.org/u/gdpelican)\
**Post date:** [19. März 2017 um 10:56 UTC](https://meta.discourse.org/t/getting-the-nomethoderror-error-when-editing-the-topic-due-to-my-plugin/59471/2 "2017-03-19T10:56:51Z")

</div>

`track_topic_field` is expecting a block to execute when the tracked field is changed, so the following line:

```plaintext
PostRevisor.track_topic_field(:testid)

```

Will break the thing, whereas

```plaintext
PostRevisor.track_topic_field(:testid) { |tc| puts "Hello world!" }

```

will work (and, I reckon, print ‘Hello world!’ to the console when you change the value of ‘testid’ on a topic)

I don’t get what the intended functionality is here, so can’t offer further advice, but if you’re tracking a topic field you also need to provide _what to do_ once that field has changed.

---

_[View the full topic](https://meta.discourse.org/t/getting-the-nomethoderror-error-when-editing-the-topic-due-to-my-plugin/59471)._
