How can i rewrite default routes defined in "config/routs.rb" in my plugin? (Redmine 2.0)
Added by Vladimir Pitin over 12 years ago
How can I get my plugin rewrite default routes defined in "config/routes.rb"?
I really need it. I want my plugin to change default page and some routes in "config/routes.rb".
In previous version of RedMine I simply wrote new routes in "routs.rb" in plugin directory. Now it doesn't work!
Any help please :)
Replies (5)
RE: How can i rewrite default routes defined in "config/routs.rb" in my plugin? (Redmine 2.0) - Added by Luis Serrano Aranda over 12 years ago
First, the name of the file is "config/routes.rb".
RE: How can i rewrite default routes defined in "config/routs.rb" in my plugin? (Redmine 2.0) - Added by Etienne Massip over 12 years ago
What do you mean with it doesn't work!?
RE: How can i rewrite default routes defined in "config/routs.rb" in my plugin? (Redmine 2.0) - Added by Vladimir Pitin over 12 years ago
It doesn't work. "config/routs.rb" was just misprint.
RE: How can i rewrite default routes defined in "config/routs.rb" in my plugin? (Redmine 2.0) - Added by Vladimir Pitin over 12 years ago
I have routes in "routes.rb" (in my plugin) and this routes work fine, but I want redefine exist routes (redmine core routes).
RE: How can i rewrite default routes defined in "config/routs.rb" in my plugin? (Redmine 2.0) - Added by Artem Tykhonov over 12 years ago
hi. Has anyone solved this issue?