today_ai_weather/app/helpers/sitemaps_helper.rb
songtianlun 3ae870047a feat: add sitemap management feature
- Implement index action to list sitemaps
- Create view for displaying sitemaps with details
- Add helper method for generating sitemap URLs
- Enhance error handling for S3 service errors

This commit introduces a new feature for managing sitemaps in the application. It includes an index view that lists all available sitemaps with their last modified date and size, along with a link to view each sitemap. The error handling for S3 interactions has also been improved to log errors and return appropriate responses.
2025-02-24 17:28:21 +08:00

6 lines
88 B
Ruby

module SitemapsHelper
def sitemap_url(filename)
"/sitemaps/#{filename}"
end
end