DEV Community


Discussion on: Some Of My Favorite Ruby Gems

leob profile image

+1 for Mailcatcher and Pagy ! (actually I'm using Mailcatcher with any app not just Rails apps)

For authorization (roles/permissions), after a rather long evaluation, I ended up choosing Pundit rather than CanCan(Can).

I'm still not convinced which one is "better" though, Pundit is probably a bit more flexible but it's also quite a bit more verbose compared to CanCan(Can)'s declarative style. And it's harder to see all the "rules" that are defined at a glance, you need to wade through a dozen files.

On the other hand it works, and it's pretty structured and easy to follow.