From c0d90640a3dcc7f077f2cfdb26efe342dc88697b Mon Sep 17 00:00:00 2001 From: yoshihara Date: Wed, 8 Apr 2015 16:40:43 +0900 Subject: [PATCH] Match method name with its behavior find_user -> set_user ^^^^ --- app/controllers/users_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index da8817c..5eae569 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -1,5 +1,5 @@ class UsersController < ApplicationController - before_action :find_user + before_action :set_user def show end @@ -14,7 +14,7 @@ class UsersController < ApplicationController private - def find_user + def set_user @user = User.new(name: session[:user_name]) end