Re: Modifying routes in plugins


#1

I want to add my own route in a plugin. Luke Amdor demonstrated how it
could be done a few weeks back.

http://article.gmane.org/gmane.comp.lang.ruby.rails/34524

But as far as I can tell (I haven’t tried it), this won’t work in Rails
1.0 because of the following change that DHH made.

http://dev.rubyonrails.org/changeset/2967

This change means that routes.rb is now processed AFTER the plugin code
and so any routes you define in the plugin code would be lost. I think
this change was supposed to make adding routes easier but I can’t
figure out a good way of doing it. Any ideas?

James


#2

Nevermind! A patch that does the trick has been submitted. (-:

http://dev.rubyonrails.org/ticket/3202

James

On Thu, 5 Jan 2006 14:07:30 +0000