summaryrefslogtreecommitdiff
path: root/users/app/controllers/users_controller.rb
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2012-12-07 14:24:10 +0100
committerAzul <azul@leap.se>2012-12-07 14:24:10 +0100
commit7273dab05b68f033de26bb68cca4b72c17b9908a (patch)
treeba55d125eb7989ac2d946b2737891dfd429e8d9e /users/app/controllers/users_controller.rb
parentb6c32177efa351e6550840ad508b59c4e722fbb6 (diff)
fixed signup and removed flash that was not getting displayed
I also tried flash.keep(:notice) but that did not help - not sure how to keep the flash until the root url has rendered.
Diffstat (limited to 'users/app/controllers/users_controller.rb')
-rw-r--r--users/app/controllers/users_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb
index 24db13b..4921a4a 100644
--- a/users/app/controllers/users_controller.rb
+++ b/users/app/controllers/users_controller.rb
@@ -22,9 +22,7 @@ class UsersController < ApplicationController
end
def create
- if @user = User.create(params[:user])
- flash[:notice] = t(:user_created_successfully)
- end
+ @user = User.create(params[:user])
respond_with @user
end