# Plugin Controller Method never called

**URL:** <https://meta.discourse.org/t/plugin-controller-method-never-called/42815>\
**Category:** Development\
**Created:** [April 19, 2016, 11:14am UTC](https://meta.discourse.org/t/plugin-controller-method-never-called/42815 "2016-04-19T11:14:51Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)\
**Post date:** [April 19, 2016, 2:28pm UTC](https://meta.discourse.org/t/plugin-controller-method-never-called/42815/2 "2016-04-19T14:28:14Z")

</div>

i haven’t tried mounting at the root level, but here’s how I’m doing in the voting plugin:

> <https://github.com/discourse/discourse-topic-voting/blob/main/plugin.rb#L219>

> <https://github.com/discourse/discourse-topic-voting/blob/main/config/routes.rb#L1>

[https://github.com/joebuhlig/discourse-feature-voting/blob/master/app/controllers/discourse\_feature\_voting/votes\_controller.rb#L5](https://github.com/joebuhlig/discourse-feature-voting/blob/master/app/controllers/discourse_feature_voting/votes_controller.rb#L5)

---

_[View the full topic](https://meta.discourse.org/t/plugin-controller-method-never-called/42815)._
