# Adding a ruby controller via plugin

**URL:** https://meta.discourse.org/t/adding-a-ruby-controller-via-plugin/60661
**Category:** Development
**Created:** [April 8, 2017, 8:28pm UTC](https://meta.discourse.org/t/adding-a-ruby-controller-via-plugin/60661 "2017-04-08T20:28:11Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [April 8, 2017, 9:18pm UTC](https://meta.discourse.org/t/adding-a-ruby-controller-via-plugin/60661/5 "2017-04-08T21:18:55Z")

</div>

Thanks @gdpelican, I’m reading more on CORS now. Just to be sure I’m following you correctly - I need to modify `staffdev` (WordPress) to allow requests from `staffforum-dev` (Discourse)? Not the other way around?

Edit: Also, I’m having a hard time understanding why this worked previously (with the copied in route and controller) and doesn’t now if my plugin does in-fact replicate the old setup.

---

_[View the full topic](https://meta.discourse.org/t/adding-a-ruby-controller-via-plugin/60661)._
