# Plugin - modify routing?

**URL:** <https://www.ruby-forum.com/t/plugin-modify-routing/49599>\
**Category:** Rails\
**Created:** [December 6, 2005, 7:56pm UTC](https://www.ruby-forum.com/t/plugin-modify-routing/49599 "2005-12-06T19:56:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ara.t.howard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Post date:** [December 6, 2005, 7:56pm UTC](https://www.ruby-forum.com/t/plugin-modify-routing/49599/1 "2005-12-06T19:56:08Z")

</div>

would it be kosher to make a plugin modify routing? could the the  
routing be  
modified such that certain actions would be routed to a controller  
**in** the  
plugin directory. or is the the realm of engines?

regards.

## -a

# =============================================================================== | ara [dot] t [dot] howard [at] noaa [dot] gov | all happiness comes from the desire for others to be happy. all misery | comes from the desire for oneself to be happy. | – bodhicaryavatara

---

<div class="post-metadata">

**Author:** ![ara.t.howard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Post date:** [December 6, 2005, 8:57pm UTC](https://www.ruby-forum.com/t/plugin-modify-routing/49599/2 "2005-12-06T20:57:21Z")

</div>

On 12/6/05, Ara.T.Howard [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> would it be kosher to make a plugin modify routing? could the the routing be  
> modified such that certain actions would be routed to a controller **in** the  
> plugin directory. or is the the realm of engines?

According to [2967] ([http://dev.rubyonrails.org/changeset/2967](http://dev.rubyonrails.org/changeset/2967)) you  
can… I’ve never seen an actual plugin that does this though.

–  
rick  
[http://techno-weenie.net](http://techno-weenie.net)

---

<div class="post-metadata">

**Author:** ![ara.t.howard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Post date:** [December 6, 2005, 9:38pm UTC](https://www.ruby-forum.com/t/plugin-modify-routing/49599/3 "2005-12-06T21:38:12Z")

</div>

On Tue, 6 Dec 2005, Rick O. wrote:

> On 12/6/05, Ara.T.Howard [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > would it be kosher to make a plugin modify routing? could the the routing be  
> > modified such that certain actions would be routed to a controller **in** the  
> > plugin directory. or is the the realm of engines?
> 
> According to [2967] ([http://dev.rubyonrails.org/changeset/2967](http://dev.rubyonrails.org/changeset/2967)) you  
> can… I’ve never seen an actual plugin that does this though.

doesn’t the engine plugin do this?

## -a

# =============================================================================== | ara [dot] t [dot] howard [at] noaa [dot] gov | all happiness comes from the desire for others to be happy. all misery | comes from the desire for oneself to be happy. | – bodhicaryavatara

---

<div class="post-metadata">

**Author:** ![ara.t.howard](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/a8b319/32.png) [@ara.t.howard](https://www.ruby-forum.com/u/ara.t.howard)\
**Post date:** [December 6, 2005, 11:57pm UTC](https://www.ruby-forum.com/t/plugin-modify-routing/49599/4 "2005-12-06T23:57:01Z")

</div>

Engines doesn’t touch routing as yet, and if the regular plugin  
mechanism is going to make provisions for it then we’ll piggyback on  
that as much as possible (the engines plugin only exists to make up  
the difference between what Rails core will provide and what our  
development needs as a team demand).

That said, I’ve played around with routing in plugins and I couldn’t  
get plugins to define routes despite the change in [2967]. Maybe  
someone else has had more luck?

- james
