# 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:** 12

<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, 10:42pm UTC](https://meta.discourse.org/t/adding-a-ruby-controller-via-plugin/60661/12 "2017-04-08T22:42:51Z")

</div>

> [@david](#):
>
> That shouldn’t be happening, because the controller says skip\_before\_filter :check\_xhr, :redirect\_to\_login\_if\_required.

Question: If the controller wasn’t routable, the `skip_before_filter` line wouldn’t be run. With the site being login\_required, hitting any url should direct to login. Could that be happening here? Theoretically?

---

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