All threads / Gem for making user groups
Ask A Question


You’re not receiving notifications from this thread.

Gem for making user groups

Rickwheeler1992 asked in Rails

I was wondering if there is a gem for making user groups in my project. Or do I have to learn the hard way how to make user groups.

Btw I’m a hobbiest not wanting to make a living. Just want to make fun web apps. I’m a novice right now

Well u can use Devise and Pundit to handle Usergroups.

Typically I just create a model called Group and a model called GroupUser that keeps track of which user is in which groups.

No gems for it that I know of since everyone tends to implement it differently.

Pundit is great for handling permissions and Devise is great for authentication pieces. The Group and GroupUser models will let you connect the two.

Join the discussion

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

Join 66,029+ 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.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2022 GoRails, LLC. All rights reserved.