diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2016-12-17 21:28:36 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2016-12-17 21:30:43 +0300 |
commit | b23f32a735459f1c76ac8232f9de06942b1d2f8a (patch) | |
tree | b8c25560d54661e2700357da6804f2e54ec9bd47 | |
parent | f0889bdfa3e0d1433b3cd293859b13ee9d186ab6 (diff) |
Fix configure route
-rw-r--r-- | app/views/projects/mattermost/new.html.haml | 3 | ||||
-rw-r--r-- | config/routes/project.rb | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/app/views/projects/mattermost/new.html.haml b/app/views/projects/mattermost/new.html.haml index 88270985e7b..1def3b07300 100644 --- a/app/views/projects/mattermost/new.html.haml +++ b/app/views/projects/mattermost/new.html.haml @@ -1,5 +1,4 @@ -= form_for(:create, method: :post, url: configure_namespace_project_mattermost_path(@project.namespace, @project, )) do |f| += form_for(:create, method: :post, url: configure_namespace_project_mattermost_index_path(@project.namespace, @project)) do |f| = "Team ID" = f.text_field(:team_id) = f.submit 'Configure', class: 'btn btn-save' - diff --git a/config/routes/project.rb b/config/routes/project.rb index 3e210a75df5..3eddd3c2a0e 100644 --- a/config/routes/project.rb +++ b/config/routes/project.rb @@ -65,7 +65,7 @@ constraints(ProjectUrlConstrainer.new) do end resources :mattermost, only: [:new] do - member do + collection do post :configure end end |