Adding display name to go_public method to fix follow on page.
authorJohn McKerrell <john@mckerrell.net>
Sat, 5 May 2007 15:01:40 +0000 (15:01 +0000)
committerJohn McKerrell <john@mckerrell.net>
Sat, 5 May 2007 15:01:40 +0000 (15:01 +0000)
app/controllers/user_controller.rb

index 60b83cc89f4d4d824fca7efd295bc2f0d585b7e5..64e1e157de48085970360f2b2a6972e1ae065e68 100644 (file)
@@ -49,7 +49,7 @@ class UserController < ApplicationController
     @user.data_public = true
     @user.save
     flash[:notice] = 'All your edits are now public'
-    redirect_to :controller => 'user', :action => 'account'
+    redirect_to :controller => 'user', :action => 'account', :display_name => @user.display_name
   end
 
   def lost_password