AJAX Pagination Tutorial

AJAX Pagination Tutorial

BrainTrust Digital

3 года назад

1,920 Просмотров

A couple weeks ago a subscriber, Insightful Talk, asked if I could explain how to improve the previous Kaminari pagination tutorial so there were no page refreshes upon clicking links. To accomplish this we will use AJAX to refresh the videos and pagination portion of our page. Don’t worry all steps too complete will be included in this tutorial walking you through how to add AJAX pagination to your Rails application.

This AJAX pagination tutorial assume you have followed my previous Rails Kaminari Pagination tutorial video, if you have not done so, you will want to reference that video first.

Rails Pagination with the Kaminari Gem
- https://youtu.be/c0hrNQJhKww

⏰ Timestamps
0:00 Introduction
0:25 Request
0:57 Without AJAX
1:14 Update Web Packer Config
2:31 Update Views
4:04 Controller Changes
4:35 Create JS Partial
6:00 Finding an Error
6:31 Bear refuses to work
7:01 Correcting Error
8:07 Push to GitHub
9:37 Deploy
9:53 Verify Production
10:23 Closing notes

AWS + Rails Series Playlist
- https://www.youtube.com/playlist?list=PL6lusswsNPHG5csQPFjMExe5XQqr1cJvq

My Gear List
- http://brain-trust.io/my-gear

My YouTube SEO Software
- https://www.tubebuddy.com/braintrust

My Accounting Software
- https://shareasale.com/r.cfm?b=960179&u=2504754&m=52946&urllink=&afftrack=

Try Audible and Get Two Free Audiobooks
- https://amzn.to/36dXe3V

Make sure you subscribe to my channel to keep up to date with new content!

DISCLAIMER: Links in this description include affiliate links. If you purchase a product or service with the links that I provide I may receive a small commission. There is no additional charge to you! Thank you for supporting BrainTrust Digital so I can continue to provide you with free content each week!

Тэги:

#kaminari_ajax #rails_ajax_pagination #how_to_add_ajax_pagination #ajax_pagination_tutorial #how_to_paginate_with_ajax #ajax_pagination #rails_pagination_kaminari #How_to_use_ajax_rails #rails_pagination #rails_pagination_gems #ruby_on_rails_pagination #rails_ajax_tutorial #subscriber_requested_tutorial #web_development #web_development_tutorial #web_development_2020 #web_development_for_beginners #How_to #pagination_js #ajax_tutorial #ruby_on_rails_2021 #ruby_on_rails_6
Ссылки и html тэги не поддерживаются


Комментарии:

Akshita Salian
Akshita Salian - 31.01.2023 16:08

Thanks! very helpful video

Ответить
Sandhya Mahesh
Sandhya Mahesh - 12.11.2021 21:28

Can you help me to add submit button at the last page in my rails app where I display questions and choices using pagination...

Ответить
Ingemar Andrade
Ingemar Andrade - 22.12.2020 18:53

Awesome thanks!

Ответить