Ask A Question


You’re not receiving notifications from this thread.

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

Muhammad asked in Rails

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:

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?!

Join the discussion
Create an account Log in

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

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

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