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

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

PostRevisor.track_topic_field(:testid)

Will break the thing, whereas

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.