Use "confirm_email" instead "confirm email" in resource names so it
[rails.git] / app / controllers / user_controller.rb
index b58a6a71c08b86927b2309a90839f08ea29ba11c..1dbc9368dc440b387e1966cec3670f65dfd1e9ec 100644 (file)
@@ -206,11 +206,11 @@ class UserController < ApplicationController
         @user.email_valid = true
         @user.save!
         token.destroy
-        flash[:notice] = I18n.t('user.confirm email.success')
+        flash[:notice] = I18n.t('user.confirm_email.success')
         session[:user] = @user.id
         redirect_to :action => 'account', :display_name => @user.display_name
       else
-        @notice = I18n.t('user.confirm email.failure')
+        @notice = I18n.t('user.confirm_email.failure')
       end
     end
   end