All threads / root pages#home or root index#post ?

Ask A Question

Notifications

You’re not receiving notifications from this thread.

root pages#home or root index#post ?

Clyde asked in Rails

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 !

Clyde

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

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,665+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.