Redmine 1.x plugins routes
Added by Artem Tykhonov over 12 years ago
Hi, all!
Is it possible to view routes for plugins in Redmine 1.x?
rake routesdisplays only standard routes.
Thanks in advance.
Replies (3)
RE: Redmine 1.x plugins routes - Added by Jan Niggemann (redmine.org team member) over 12 years ago
I'm running 1.4.3 and rake routes does show routes for plugins...
Example snippet:
dmsf_index POST /dmsf(.:format) {:controller=>"dmsf", :action=>"create"} new_dmsf GET /dmsf/new(.:format) {:controller=>"dmsf", :action=>"new"} notify_activate_dmsf POST /dmsf/:id/notify_activate(.:format) {:controller=>"dmsf", :action=>"notify_activate"} delete_dmsf POST /dmsf/:id/delete(.:format) {:controller=>"dmsf", :action=>"delete"} save_root_dmsf POST /dmsf/:id/save_root(.:format) {:controller=>"dmsf", :action=>"save_root"}
RE: Redmine 1.x plugins routes - Added by Artem Tykhonov over 12 years ago
It does show, because redmine_dmsf plugin contains routes.rb file.
But, for example, redmine_ezlibrarian plugin doesn't contain such file. So, I can't see routes for this plugin and have a problem with rewriting it for Redmine 2.x.
RE: Redmine 1.x plugins routes - Added by Jan Niggemann (redmine.org team member) over 12 years ago
If there's no routes.rb file, the plugin used the default route and as a result was only compatible with versions prior to 1.4.x, because IIRC that's when the default route was removed...