28
29
30
31
32
33
34
35
36
37
38
|
# File 'app/controllers/users_controller.rb', line 28
def create
authorize! :create, User
@user = User.new(user_params)
if @user.save
flash[:success] = I18n.t('txt.controllers.users.successfully_created')
redirect_to users_path
else
render action: :new
end
end
|