50 Experience
0 Lessons Completed
0 Questions Solved


Posted in root pages#home or root index#post ?

Hello everyone :)

Thank you for these tutorials!

I am a beginner on Ruby on Rails and I have a small question.

I am currently creating an application allowing me to list my posts with an upvote system. Currently I create my home page with root pages#home.

But I have the impression that I may have to do my home page with root posts#index ..

Because when I look at some tutorials I feel that it's easier to put the infinite scroll, search filters with ajax, ranking by popular or newest, opening my posts in modal bootstrap, ... with *root posts#index * ...

So I hesitate to change everything ... opinions? :)

Thank you in advance !


EDIT: little mistake in the title ... it's posts#index and no index#post

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2023 GoRails, LLC. All rights reserved.