From 7273dab05b68f033de26bb68cca4b72c17b9908a Mon Sep 17 00:00:00 2001 From: Azul Date: Fri, 7 Dec 2012 14:24:10 +0100 Subject: 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. --- users/app/controllers/users_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'users/app/controllers') 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 -- cgit v1.2.3