Ask A Question

Notifications

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.

Reply

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

Reply

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.

Reply

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

Reply
Join the discussion
Create an account Log in

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

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

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