summaryrefslogtreecommitdiff
path: root/app/controllers/users_controller.rb
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-03 19:54:47 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-03 19:54:47 -0500
commit8f67dafea481f8223983df4dae3a62c92bb5068f (patch)
treed60dd14f3d8ddf8e857122695e50f7283c2d2ef0 /app/controllers/users_controller.rb
parent21f151629004dbcd28b4576f256ad213aee1bdb2 (diff)
users_controller: indent
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r--app/controllers/users_controller.rb27
1 files changed, 13 insertions, 14 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 6436e4e..d5aa675 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -1,26 +1,25 @@
class UsersController < ApplicationController
-
def new
@user = User.new
end
- def create
- @user = User.new(user_params)
- if @user.save
- sign_in @user
- redirect_to root_path
- else
- render 'new'
- end
- end
+ def create
+ @user = User.new(user_params)
+ if @user.save
+ sign_in @user
+ redirect_to root_path
+ else
+ render 'new'
+ end
+ end
def show
@user = User.find(param[:id])
end
private
-
- def user_params
- params.require(:user).permit(:name, :email, :user_name, :password, :password_confirmation)
- end
+
+ def user_params
+ params.require(:user).permit(:name, :email, :user_name, :password, :password_confirmation)
+ end
end