Ngl i was about to go crazy because i needed pagination in a rails project, i'm really new to the whole coding thing and was losing it haha, you saved my life i'll drop a like and a sub, thanks!
Glad I could help. There’s always so much to learn, especially when starting out. Feel free to come back to my videos and ask questions. I try to make subscriber requests when possible to cover topics that are too difficult to cover via text response.
great video! I was searching to learn pagination with Kaminari Get and this works great. I got subscribed with all notifications and liked the video . Keep up the good work! Thank you for sharing your knowledge
Perfect, happy to hear the video was helpful. I really appreciate the like and subscribe, really helps me out. Please let me know if there are any other topics you would like me to cover!
Dude, thanks for your detailed tutorial and comment! I'm a new starter for rails, and confused about the official documentation what the "No configuration required." means. Thanks you so much!
No problem and welcome to the rails community! The rails framework has the motto "convention over configuration". Basically the framework chooses intelligent defaults for you. You can change or override these if necessary, but most people / projects don't require a ton of configuration. You can focus on build the unique features of your app as opposed to be stuck trying to figure out a ton of configuration.
Thank you Jose, I really appreciate the kind words! I have been sticking to a schedule of one video per week typically released on the weekend. I have been working to find ways to speed up and optimize my process to try to increase this number, but as it currently stands, thats the upload schedule I have been able to maintain. Thanks again!
@@adenaziz3600 So 6 months later and I finally got to that video you requested, well part of it: search with pagination (th-cam.com/video/yNOp0kwEEdg/w-d-xo.html) Its a super simple search just to show how the two interact. Was thinking about more complex search options in future videos.
Thanks for your YT, it helped me a lot! Can I ask you one question regarding this pagination? How can I stop the page refreshing whenever I switch it to the next page? Since I am building a long one page website, it really bugs me whenever it refreshes the page, Any advice?
I though this would make a great tutorial, so I just created a tutorial coving this topic. Hopefully this helps answer your question: th-cam.com/video/OSZ6WiUwFyg/w-d-xo.html
EVERY pagination tutorial starts fresh with a new super simple rails app... how am I supposed to replace "all" for products with .page param[page] when "all" is in the middle of if params[:category].blank? @products = Product.all.order("created_at DESC").search(params[:term]) else @category_id = Category.find_by(name: params[:category]).id @products = Product.where(category_id: @category_id).order("created_at DESC") and in the views, I'm already grouping, so it's not as simple as 'add this at the bottom and you're done!'
I think you make a really good point. I plan to create a video to try help with complex pagination scenarios like the one you presented, but it is going to take me a bit of work to get there. I just released a video this week adding categories to my application (th-cam.com/video/77qQA-fRxjA/w-d-xo.html). As you can see, I am slowly building my way towards the problem setup. I have a bit more work before I can attempt to provide a solution.
⏰ Timestamps
0:00 Introduction
1:02 Add Gem
1:31 Generate Config
1:55 Generate Views
2:46 Update Config
3:26 Check out Views
3:48 Paginate Users
5:37 Bear vs Avocado Round 2
6:03 Paginate Videos
7:35 Push to GitHub
8:30 Deploy
8:42 Check in Production
8:50 Closing notes
It's a beneficial video for me. The video is straightforward to understand what you had explained the gem.
Glad it helped, please let me know if there are other topics you’d like me to cover
It's so hard to find any resources on rails that is not japanese.
This is the best rails tutorials I found till now.
please keep up making videos.
Thanks so much for the encouragement, I really appreciate it. Please let me know if there are any topics you would like me to cover!
Ngl i was about to go crazy because i needed pagination in a rails project, i'm really new to the whole coding thing and was losing it haha, you saved my life i'll drop a like and a sub, thanks!
Glad I could help. There’s always so much to learn, especially when starting out. Feel free to come back to my videos and ask questions. I try to make subscriber requests when possible to cover topics that are too difficult to cover via text response.
Nice, man! You help me so much! Thanks!
I love that, glad I could help! Please let me know if you have any questions or tutorial requests.
Thank you for creating this video!
great video! I was searching to learn pagination with Kaminari Get and this works great. I got subscribed with all notifications and liked the video . Keep up the good work! Thank you for sharing your knowledge
Perfect, happy to hear the video was helpful. I really appreciate the like and subscribe, really helps me out. Please let me know if there are any other topics you would like me to cover!
Dude, thanks for your detailed tutorial and comment! I'm a new starter for rails, and confused about the official documentation what the "No configuration required." means. Thanks you so much!
No problem and welcome to the rails community! The rails framework has the motto "convention over configuration". Basically the framework chooses intelligent defaults for you. You can change or override these if necessary, but most people / projects don't require a ton of configuration. You can focus on build the unique features of your app as opposed to be stuck trying to figure out a ton of configuration.
thank you very much! I hope you upload more videos, they are great!
Thank you Jose, I really appreciate the kind words! I have been sticking to a schedule of one video per week typically released on the weekend. I have been working to find ways to speed up and optimize my process to try to increase this number, but as it currently stands, thats the upload schedule I have been able to maintain. Thanks again!
you helped me ,
Glad I could help!! Please let me know if there are other topics you would like me to try to cover
this video was very good
however, I wanted to clear a doubt
Thank you!, can you make another tutorial like Search & Sorting? so it's complete CRUD with pagination & sorting and search 🙏
Yes, that's a great idea, I'll add that to the list. Give me a few weeks to see what I can come up with.
@@BrainTrustDigital alright that's cool
@@adenaziz3600 So 6 months later and I finally got to that video you requested, well part of it: search with pagination (th-cam.com/video/yNOp0kwEEdg/w-d-xo.html) Its a super simple search just to show how the two interact. Was thinking about more complex search options in future videos.
@@BrainTrustDigital wow thanks, finally 👏. I'll definitely watch it 👍, keep up with these tutorial 🙏
Great stuff, thanks!!!
Thanks for your YT, it helped me a lot! Can I ask you one question regarding this pagination? How can I stop the page refreshing whenever I switch it to the next page?
Since I am building a long one page website, it really bugs me whenever it refreshes the page, Any advice?
I though this would make a great tutorial, so I just created a tutorial coving this topic. Hopefully this helps answer your question: th-cam.com/video/OSZ6WiUwFyg/w-d-xo.html
EVERY pagination tutorial starts fresh with a new super simple rails app... how am I supposed to replace "all" for products with .page param[page] when "all" is in the middle of
if params[:category].blank?
@products = Product.all.order("created_at DESC").search(params[:term])
else
@category_id = Category.find_by(name: params[:category]).id
@products = Product.where(category_id: @category_id).order("created_at DESC")
and in the views, I'm already grouping, so it's not as simple as 'add this at the bottom and you're done!'
Now if you'll excuse me, I'm going to go cry
I think you make a really good point. I plan to create a video to try help with complex pagination scenarios like the one you presented, but it is going to take me a bit of work to get there. I just released a video this week adding categories to my application (th-cam.com/video/77qQA-fRxjA/w-d-xo.html). As you can see, I am slowly building my way towards the problem setup. I have a bit more work before I can attempt to provide a solution.