Change user forms to use current user instead of @user
[rails.git] / app / controllers / user_controller.rb
index ea6e1a8d5d6fdbc5729f7e74e7f6d722f5b21e36..d3ed53c1bc040353d52d8b23884bf6decf13cd31 100644 (file)
@@ -220,6 +220,8 @@ class UserController < ApplicationController
       flash.now[:notice] = render_to_string :partial => "auth_association"
     else
       check_signup_allowed
+
+      self.current_user = User.new
     end
   end