projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d39470c
)
Make "create folder" button work
author
Tom Clegg <tom@curoverse.com>
Wed, 30 Apr 2014 06:43:47 +0000
(
02:43
-0400)
committer
Tom Clegg <tom@curoverse.com>
Wed, 30 Apr 2014 06:43:47 +0000
(
02:43
-0400)
apps/workbench/app/controllers/groups_controller.rb
patch
|
blob
|
history
diff --git
a/apps/workbench/app/controllers/groups_controller.rb
b/apps/workbench/app/controllers/groups_controller.rb
index 416969f359f6d85f30ad077e213b1558b34ed724..6c0264edfdbc8d5ac98375da13529335b52a9e7e 100644
(file)
--- a/
apps/workbench/app/controllers/groups_controller.rb
+++ b/
apps/workbench/app/controllers/groups_controller.rb
@@
-18,4
+18,13
@@
class GroupsController < ApplicationController
@objects = @object.contents include_linked: true
super
end
+
+ def create
+ # params[:group_class]=='folder' if we were routed through /folders
+ logger.error params.inspect
+ if (rsc = params[:group_class])
+ params['group'] = (params[rsc] || {}).merge(group_class: rsc)
+ end
+ super
+ end
end