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

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.

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

Join the discussion

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

Join 37,344+ 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.