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

Reply
Join the discussion
Create an account Log in

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

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

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