Forum: Ruby on Rails Re: Modifying routes in plugins

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
570ee005a5d5af0dcc6a92ccfb7d1be1?d=identicon&s=25 James Le Cuirot (Guest)
on 2006-01-05 17:44
(Received via mailing list)
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
570ee005a5d5af0dcc6a92ccfb7d1be1?d=identicon&s=25 James Le Cuirot (Guest)
on 2006-01-05 17:44
(Received via mailing list)
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
This topic is locked and can not be replied to.