[ARVADOS] updated: 6d69aeff49ee75d8d132ef1e51a20c5caef21cc4

git at public.curoverse.com git at public.curoverse.com
Fri Dec 27 14:19:09 EST 2013


Summary of changes:
 .../app/views/application/_index.html.erb          |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

       via  6d69aeff49ee75d8d132ef1e51a20c5caef21cc4 (commit)
      from  afc4513b1dc69ca66f2e52f5ca7403b962bfda03 (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 6d69aeff49ee75d8d132ef1e51a20c5caef21cc4
Author: Tom Clegg <tom at curoverse.com>
Date:   Fri Dec 27 11:17:52 2013 -0800

    Fix return_to on generic "Create" button.
    
    (was "return_to=./", causing a redirect to "http://host:port./")

diff --git a/apps/workbench/app/views/application/_index.html.erb b/apps/workbench/app/views/application/_index.html.erb
index 0f6f551..d12c401 100644
--- a/apps/workbench/app/views/application/_index.html.erb
+++ b/apps/workbench/app/views/application/_index.html.erb
@@ -62,5 +62,5 @@
 <% end %>
 
 <% if controller.model_class.creatable? %>
-<%= button_to "Add a new #{controller.model_class.to_s.underscore.gsub '_', ' '}", { action: 'create', return_to: './' }, { class: 'btn btn-primary' } %>
+<%= button_to "Add a new #{controller.model_class.to_s.underscore.gsub '_', ' '}", { action: 'create', return_to: request.url }, { class: 'btn btn-primary' } %>
 <% end %>

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list