Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(11)

Unified Diff: app/controllers/administrator_controller.rb

Issue 2323: Upgrade to Rails 2 SVN Base: http://familyconnect.rubyforge.org/svn/trunk/
Patch Set: Created 1 year, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side by-side-diff with in-line comments
Download patch
Index: app/controllers/administrator_controller.rb
===================================================================
--- app/controllers/administrator_controller.rb (revision 36)
+++ app/controllers/administrator_controller.rb (working copy)
@@ -44,12 +44,12 @@
def signup
@menu_left = 'administrator/menu_left_signup' if @first_time_install
@admin_signup = true
- @user = User.new(@params[:user])
+ @user = User.new(params[:user])
@security = OpenStruct.new(params[:security])
- if @request.post?
+ if request.post?
@user.admin = true
if @user.save
- @session[:user] = User.authenticate(@user.login, @params[:user][:password])
+ session[:user] = User.authenticate(@user.login, params[:user][:password])
redirect_to :action => 'setup_done'
end
end

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r483