songtianlun
3a6d247451
- Introduce ArtsController with index action - Create index view for displaying weather arts - Implement Kaminari for pagination functionality - Add necessary routes for accessing arts - Update Gemfile to include Kaminari gem - Create views for pagination controls This implementation enhances the Weather Arts Gallery, allowing users to view and navigate through a collection of AI-generated weather arts easily. Pagination controls have been added to improve usability.
15 lines
353 B
Ruby
15 lines
353 B
Ruby
# frozen_string_literal: true
|
|
|
|
Kaminari.configure do |config|
|
|
# config.default_per_page = 25
|
|
# config.max_per_page = nil
|
|
# config.window = 4
|
|
# config.outer_window = 0
|
|
# config.left = 0
|
|
# config.right = 0
|
|
# config.page_method_name = :page
|
|
# config.param_name = :page
|
|
# config.max_pages = nil
|
|
# config.params_on_first_page = false
|
|
end
|