Active Storage Dashboard is a mountable Rails engine that offers a modern interface for viewing and managing Active Storage data. With features like usage statistics, blob inspection, and direct file downloads, it enhances the developer experience while providing essential insights without external dependencies.
Active Storage Dashboard is a mountable Rails engine designed to provide a user-friendly interface for monitoring and examining Active Storage data within Rails applications. With its sleek and modern dashboard, users can gain valuable insights into file usage and relationships effortlessly.
Once the engine is integrated into the application, it can be mounted in the config/routes.rb file with a straightforward configuration:
Rails.application.routes.draw do
mount ActiveStorageDashboard::Engine, at: "/active-storage-dashboard"
end
After setup, users can visit /active-storage-dashboard in their browser to access the dashboard's features.
The dashboard supports direct file downloads from both the list and detail views. Simply click the download button to retrieve files seamlessly.
Given that the dashboard offers access to all Active Storage data, it is advisable to implement authentication for production environments:
# For secure access
authenticate :user, -> (user) { user.admin? } do
mount ActiveStorageDashboard::Engine, at: "/active-storage-dashboard"
end
This secure access can also be configured using tools like Devise for enhanced security.
This engine provides a vital tool for developers needing to manage Active Storage data efficiently while ensuring a high-quality user experience.
No comments yet.
Sign in to be the first to comment.