# Help wanted on plugin controller

**URL:** <https://meta.discourse.org/t/help-wanted-on-plugin-controller/40258>\
**Category:** Development\
**Created:** [27 فبراير 2016، 11:05ص UTC](https://meta.discourse.org/t/help-wanted-on-plugin-controller/40258 "2016-02-27T11:05:04Z")\
**Posts on this page:** 1\
**Showing post:** 1

<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:** [27 فبراير 2016، 11:05ص UTC](https://meta.discourse.org/t/help-wanted-on-plugin-controller/40258/1 "2016-02-27T11:05:05Z")

</div>

We’re building a Sitemap plugin and I’m running into an issue.

(Yes there has been a lot of discussion around the need for a sitemap, but Google News totally requires it)

Somehow the code in the controller is never executed and I get the regular “The page you requested doesn’t exist or is private” message.

Because I suspected an issue with the view, I have stripped the code so it should only output a log line and an error, but this doesn’t work either.

Code is here:  
[https://github.com/communiteq/discourse-sitemap/blob/master/plugin.rb#L20-L26](https://github.com/communiteq/discourse-sitemap/blob/master/plugin.rb#L20-L26)

Running it does this:

 ![](https://global.discourse-cdn.com/meta/original/3X/4/f/4f72c0cc9dd0696922522cfe66b4ef97804afb82.PNG)

If I rename the `generate` method or change the route, I get an error that the controller could not be found, so I should be on the right path here. Is there anyone who can spot (the probably very trivial) issue?

---

_[View the full topic](https://meta.discourse.org/t/help-wanted-on-plugin-controller/40258)._
