# Deactivating Extension Routes

**URL:** <https://www.ruby-forum.com/t/deactivating-extension-routes/118620>\
**Category:** Radiant CMS\
**Created:** [October 29, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/deactivating-extension-routes/118620 "2007-10-29T15:39:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [October 29, 2007, 3:39pm UTC](https://www.ruby-forum.com/t/deactivating-extension-routes/118620/1 "2007-10-29T15:39:46Z")

</div>

I just noticed that when I deactivate my extension with the admin ui,  
that the extension’s routes are still live. This means that trying to  
browse to one of the (now deactivated) extension’s actions throws a  
rails application error instead of producing the admin 404 page.

Is there a safe way to turn on and turn off the route mapping when  
activating and deactivating extensions?

-Chris

---

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [October 29, 2007, 3:46pm UTC](https://www.ruby-forum.com/t/deactivating-extension-routes/118620/2 "2007-10-29T15:46:13Z")

</div>

Chris,

Extension deactivation is very anemic at the moment. I think the way  
that John and Adam envisioned it hasn’t panned out as they had hoped.  
It’s a lot harder to reverse the code injection that extensions  
typically do than to set it up in the first place. If you can dig into  
the code and figure out a way, we’d love that, but I think it’s going to  
be more difficult than we first anticipated.

Sean

---

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [October 29, 2007, 4:55pm UTC](https://www.ruby-forum.com/t/deactivating-extension-routes/118620/3 "2007-10-29T16:55:51Z")

</div>

On Oct 29, 2007, at 10:37 AM, Chris P. wrote:

> I just noticed that when I deactivate my extension with the admin ui,  
> that the extension’s routes are still live. This means that trying to  
> browse to one of the (now deactivated) extension’s actions throws a  
> rails application error instead of producing the admin 404 page.
> 
> Is there a safe way to turn on and turn off the route mapping when  
> activating and deactivating extensions?

That’s probably a bug. Routes should be disabled when the extension is  
disabled. Can you file a ticket?

–  
John L.  
[http://wiseheartdesign.com](http://wiseheartdesign.com)
