Go to file
songtianlun f2c7d02eed feat: add user deletion functionality
- Implement user destroy action in UsersController
- Add admin check for user deletion
- Update user view to include delete link for admins
- Add migration to add admin attribute to users
- Update tests to cover new admin functionality

This commit introduces the ability for admin users to delete
other users from the system. It includes necessary checks to
ensure that only admins can perform this action, along with
updates to the user interface and tests to validate the
new behavior.
2025-01-05 18:27:13 +08:00
.github init sample-app 2024-12-29 17:12:54 +08:00
.kamal init sample-app 2024-12-29 17:12:54 +08:00
app feat: add user deletion functionality 2025-01-05 18:27:13 +08:00
bin feat: update asset management and add bundling tools 2025-01-02 14:45:44 +08:00
config feat: add pagination to user index view 2025-01-05 17:50:33 +08:00
db feat: add user deletion functionality 2025-01-05 18:27:13 +08:00
lib/tasks init sample-app 2024-12-29 17:12:54 +08:00
log init sample-app 2024-12-29 17:12:54 +08:00
public init sample-app 2024-12-29 17:12:54 +08:00
script init sample-app 2024-12-29 17:12:54 +08:00
storage init sample-app 2024-12-29 17:12:54 +08:00
test feat: add user deletion functionality 2025-01-05 18:27:13 +08:00
tmp init sample-app 2024-12-29 17:12:54 +08:00
vendor init sample-app 2024-12-29 17:12:54 +08:00
.dockerignore init sample-app 2024-12-29 17:12:54 +08:00
.gitattributes init sample-app 2024-12-29 17:12:54 +08:00
.gitignore chore: remove IDE configuration files 2025-01-04 09:46:50 +08:00
.rubocop.yml init sample-app 2024-12-29 17:12:54 +08:00
.ruby-version add website struct 2024-12-30 13:23:22 +08:00
config.ru init sample-app 2024-12-29 17:12:54 +08:00
Dockerfile init sample-app 2024-12-29 17:12:54 +08:00
Gemfile feat: add pagination to user index view 2025-01-05 17:50:33 +08:00
Gemfile.lock feat: add pagination to user index view 2025-01-05 17:50:33 +08:00
Guardfile style: standardize quotation marks and spacing 2025-01-04 10:21:22 +08:00
package-lock.json feat: update asset management and add bundling tools 2025-01-02 14:45:44 +08:00
package.json feat: update asset management and add bundling tools 2025-01-02 14:45:44 +08:00
Procfile.dev feat: update asset management and add bundling tools 2025-01-02 14:45:44 +08:00
Rakefile init sample-app 2024-12-29 17:12:54 +08:00
README.md init sample-app 2024-12-29 17:12:54 +08:00
yarn.lock feat: update asset management and add bundling tools 2025-01-02 14:45:44 +08:00

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...