改变redmine路线

时间:2016-10-08 02:22:10

标签: ruby-on-rails redmine

www.redmine.org

我们使用Redmine进行资产跟踪,我想更新网址。目前,URL围绕着问题而且看起来不适合资产。

我想更新它,以便导航到:

www.domain.com/assets而非www.domain.com/issues

使用: Route alias in Rails

我查看了routes.rb并更改了行:

resources :issues do

resources :issues, :path => :assets do

不幸的是它不起作用......

**佣金路线

rake routes | grep issues
/home/user/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/htmlentities-4.3.1/lib/htmlentities/mappings/expanded.rb:465: warning: key "inodot" is duplicated and overwritten on line 466
[DEPRECATION] `last_comment` is deprecated.  Please use `last_description` instead.
                     preview_new_issue GET|POST|PUT|PATCH /issues/preview/new/:project_id(.:format)                                         previews#issue
                    preview_edit_issue GET|POST|PUT|PATCH /issues/preview/edit/:id(.:format)                                                previews#issue
                         preview_issue GET|POST|PUT|PATCH /issues/preview(.:format)                                                         previews#issue
                  auto_complete_issues GET                /issues/auto_complete(.:format)                                                   auto_completes#issues
                   issues_context_menu GET|POST           /issues/context_menu(.:format)                                                    context_menus#issues
                         issue_changes GET                /issues/changes(.:format)                                                         journals#index
                          quoted_issue POST               /issues/:id/quoted(.:format)                                                      journals#new {:id=>/\d+/}
                         project_gantt GET                /projects/:project_id/issues/gantt(.:format)                                      gantts#show
                          issues_gantt GET                /issues/gantt(.:format)                                                           gantts#show
                      project_calendar GET                /projects/:project_id/issues/calendar(.:format)                                   calendars#show
                       issues_calendar GET                /issues/calendar(.:format)                                                        calendars#show
                 project_issues_report GET                /projects/:id/issues/report(.:format)                                             reports#issue_report
         project_issues_report_details GET                /projects/:id/issues/report/:detail(.:format)                                     reports#issue_report_details
                     new_issues_import GET                /issues/imports/new(.:format)                                                     imports#new
                                       POST               /issues/:object_id/watchers(.:format)                                             watchers#create {:object_type=>"issue"}
                                       DELETE             /issues/:object_id/watchers/:user_id(.:format)                                    watchers#destroy {:object_type=>"issue"}
                    project_copy_issue GET                /projects/:project_id/issues/:copy_from/copy(.:format)                            issues#new
                        project_issues GET                /projects/:project_id/issues(.:format)                                            issues#index
                                       POST               /projects/:project_id/issues(.:format)                                            issues#create
                     new_project_issue GET                /projects/:project_id/issues/new(.:format)                                        issues#new
                    project_issues_new POST               /projects/:project_id/issues/new(.:format)                                        issues#new
                            edit_issue PATCH              /issues/:id/edit(.:format)                                                        issues#edit
                      bulk_edit_issues GET|POST           /issues/bulk_edit(.:format)                                                       issues#bulk_edit
                    bulk_update_issues POST               /issues/bulk_update(.:format)                                                     issues#bulk_update
             report_issue_time_entries GET                /issues/:issue_id/time_entries/report(.:format)                                   timelog#report
                    issue_time_entries GET                /issues/:issue_id/time_entries(.:format)                                          timelog#index
                                       POST               /issues/:issue_id/time_entries(.:format)                                          timelog#create
                  new_issue_time_entry GET                /issues/:issue_id/time_entries/new(.:format)                                      timelog#new
                       issue_relations GET                /issues/:issue_id/relations(.:format)                                             issue_relations#index
                                       POST               /issues/:issue_id/relations(.:format)                                             issue_relations#create
                                issues GET                /issues(.:format)                                                                 issues#index
                                       POST               /issues(.:format)                                                                 issues#create
                             new_issue GET                /issues/new(.:format)                                                             issues#new
                                       GET                /issues/:id/edit(.:format)                                                        issues#edit
                                 issue GET                /issues/:id(.:format)                                                             issues#show
                                       PATCH              /issues/:id(.:format)                                                             issues#update
                                       PUT                /issues/:id(.:format)                                                             issues#update
                                       DELETE             /issues/:id(.:format)                                                             issues#destroy
                            issues_new POST               /issues/new(.:format)                                                             issues#new
                                       DELETE             /issues(.:format)                                                                 issues#destroy
                                       POST               /projects/:id/repository/:repository_id/revisions/:rev/issues(.:format)           repositories#add_related_issue
                                       DELETE             /projects/:id/repository/:repository_id/revisions/:rev/issues/:issue_id(.:format) repositories#remove_related_issue
                                       POST               /projects/:id/repository/revisions/:rev/issues(.:format)                          repositories#add_related_issue
                                       DELETE             /projects/:id/repository/revisions/:rev/issues/:issue_id(.:format)                repositories#remove_related_issue

0 个答案:

没有答案