projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4dfe43c
)
Save the user record after changing it
author
Tom Hughes
<tom@compton.nu>
Fri, 9 Mar 2012 00:21:08 +0000
(
00:21
+0000)
committer
Tom Hughes
<tom@compton.nu>
Fri, 9 Mar 2012 00:21:08 +0000
(
00:21
+0000)
app/controllers/user_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/user_controller.rb
b/app/controllers/user_controller.rb
index 375ac81318b809df488c7d6869f97d65e3408481..d7b73c14e6aa0739dbf370b73bba7873f1523317 100644
(file)
--- a/
app/controllers/user_controller.rb
+++ b/
app/controllers/user_controller.rb
@@
-474,6
+474,7
@@
class UserController < ApplicationController
# sets a user's status
def set_status
@this_user.status = params[:status]
+ @this_user.save
redirect_to :controller => 'user', :action => 'view', :display_name => params[:display_name]
end