[ARVADOS] updated: 122e392ac6d9b36e376937f4dc2f910118b112ac

git at public.curoverse.com git at public.curoverse.com
Wed May 28 10:05:13 EDT 2014


Summary of changes:
 apps/workbench/app/views/user_agreements/index.html.erb | 2 +-
 apps/workbench/config/routes.rb                         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

       via  122e392ac6d9b36e376937f4dc2f910118b112ac (commit)
      from  9e4c1f166766dcbd0cfc8bc17ff13f7a2dc8508d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 122e392ac6d9b36e376937f4dc2f910118b112ac
Author: Tom Clegg <tom at curoverse.com>
Date:   Wed May 28 10:04:55 2014 -0400

    2892: Fix user agreement routing. closes #2892

diff --git a/apps/workbench/app/views/user_agreements/index.html.erb b/apps/workbench/app/views/user_agreements/index.html.erb
index 3ad3c79..49516eb 100644
--- a/apps/workbench/app/views/user_agreements/index.html.erb
+++ b/apps/workbench/app/views/user_agreements/index.html.erb
@@ -9,7 +9,7 @@ User agreements
 <% end %>
 <% end %>
 
-<%= form_for(@required_user_agreements.first, {url: {action: 'sign', controller: 'user_agreements'}}) do |f| %>
+<%= form_for(@required_user_agreements.first, {url: {action: 'sign', controller: 'user_agreements'}, method: 'post'}) do |f| %>
 <%= hidden_field_tag :return_to, request.url %>
 <div id="open_user_agreement">
   <div class="alert alert-info">
diff --git a/apps/workbench/config/routes.rb b/apps/workbench/config/routes.rb
index 77ffda2..e3cabbd 100644
--- a/apps/workbench/config/routes.rb
+++ b/apps/workbench/config/routes.rb
@@ -4,7 +4,7 @@ ArvadosWorkbench::Application.routes.draw do
   resources :keep_disks
   resources :keep_services
   resources :user_agreements do
-    put 'sign', on: :collection
+    post 'sign', on: :collection
     get 'signatures', on: :collection
   end
   get '/user_agreements/signatures' => 'user_agreements#signatures'

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list