Skip to main content

How to make a user like a post without the need of authentication?!

Rails • Asked by Muhammad

Hi, I have a side project where I don't want visitors to make accounts because it is just a collection of posts but I want them to be able to like posts.


what's the real problem here?
just increment the number of like of the post once the user click like button


Hey, good afternoon.

Look this tutorial: https://www.railstutorial.org/

It has this feature that you want to implement. It is a recommended tutorial for Ruby on Rails developers.

I hope this will help you.


@hafidz And how could I store the user device so they don't like it tiwce or something like that?!


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.