aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/users_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r--app/controllers/users_controller.rb9
1 files changed, 2 insertions, 7 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 2b1c2bd14..7726f203a 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -1,7 +1,8 @@
class UsersController < BreadcrumbController
defaults :resource_class => User
-
+ respond_to :html, :only => [:show, :new]
+
def create
@user = current_organisation.users.build(params[:user])
@@ -13,12 +14,6 @@ class UsersController < BreadcrumbController
end
end
- def update
- update! do |success, failure|
- success.html { redirect_to organisation_user_path(@user) }
- end
- end
-
def destroy
destroy! do |success, failure|
success.html { redirect_to organisation_path }