Finish user edit, update, index, and destroy actions
{{ resolvedDiscussionCount }}/{{ discussionCount }} {{ resolvedCountText }} resolved
-
10 10 format: { with: VALID_EMAIL_REGEX }, uniqueness: { case_sensitive: false } 11 11 12 12 has_secure_password 13 validates :password, presence: true, length: { minimum: 6 } 13 validates :password, presence: true, length: { minimum: 6 }, allow_nil: true -
Master
-
-
1 1 class UsersController < ApplicationController 2 before_action :logged_in_user, only: [:index, :edit, :update, :destroy] 3 before_action :correct_user, only: [:edit, :update] -
MasterEdited by Ba Toi Dang
before_action :set_user, only: [:show, :edit, :update, :delete] before_action :correct_user, only: [:edit, :update] def set_user @user = User.find(params[:id]) end
-
-
merged
Toggle commit list