• R/O
  • SSH
  • HTTPS

minisns: 提交


Commit MetaInfo

修订版19 (tree)
时间2009-07-19 14:49:24
作者rainyrook

Log Message

(empty log message)

更改概述

差异

--- minisns/app/controllers/account_controller.rb (revision 18)
+++ minisns/app/controllers/account_controller.rb (revision 19)
@@ -46,6 +46,18 @@
4646 end
4747 end
4848
49+ def reminder
50+ @user = User.new(params[:user])
51+ return unless request.post?
52+ @user.save!
53+# self.current_user = @user
54+# redirect_back_or_default(:controller => '/account', :action => 'login')
55+ redirect_to(:action => 'signup_notification')
56+ flash[:notice] = "Thanks for signing up!"
57+ rescue ActiveRecord::RecordInvalid
58+ render :action => 'signup'
59+ end
60+
4961 def logout
5062 self.current_user.forget_me if logged_in?
5163 cookies.delete :auth_token
--- minisns/app/controllers/user_infos_controller.rb (revision 18)
+++ minisns/app/controllers/user_infos_controller.rb (revision 19)
@@ -25,7 +25,6 @@
2525 format.html # index.html.erb
2626 format.xml { render :xml => @user_infos }
2727 end
28-
2928 end
3029
3130 # GET /user_infos/1
Show on old repository browser