- 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.
9 lines
353 B
Plaintext
9 lines
353 B
Plaintext
<%# Non-link tag that stands for skipped pages...
|
|
- available local variables
|
|
current_page: a page object for the currently displayed page
|
|
total_pages: total number of pages
|
|
per_page: number of items to fetch per page
|
|
remote: data-remote
|
|
-%>
|
|
<span class="page gap"><%= t('views.pagination.truncate').html_safe %></span>
|