#49 gem Pundit for Authorization - Complete Guide
05/08/2021
Gratis
Restrict access to different views and actions in your application based on users roles.
Episode source code:
https://github.com/corsego/49-gem-pundit/commit/3e3c65d8b6deaf382dea5ce554c732e85731d6d2
My text notes for this episode:
https://blog.corsego.com/complete-guide-to-gem-pundit
Gem pundit source code:
https://github.com/varvet/pundit
0:00 Authorization without a gem
2:20 Install gem Pundit, basic usage
7:10 User Policy - only admin can edit
10:22 Create Post Policy
11:50 Pundit Scopes
14:10 Authorization conditions in views
16:34 Summary
0
Inicia sesión para unirte a la conversación
Recomendado según lo que estás viendo ahora
![Build a diff checker with database record version control](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MjI4NCwicHVyIjoiYmxvYl9pZCJ9fQ==--81b82c2159f4b06a7ed6168049663c6f6e711f24/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJwbmciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--34e5c9bac0ea93c87a890e274478a7e6bd659b29/169-diff-checker-version-control.png)
Build a diff checker with database record version control
22/05/2024
Pro
1
![#37 Install Bootstrap 5 with Rails 6, Yarn and Webpacker](https://superails.com/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MTgxNywicHVyIjoiYmxvYl9pZCJ9fQ==--e7ec9f84df32b684e3467ac23a12f61e3348e992/eyJfcmFpbHMiOnsiZGF0YSI6eyJmb3JtYXQiOiJqcGciLCJyZXNpemVfdG9fbGltaXQiOls0MDAsNjAwXX0sInB1ciI6InZhcmlhdGlvbiJ9fQ==--2d7cd3a4d9675c7f4c17dad7856d799792bd3595/maxresdefault.jpg)
06:42
#37 Install Bootstrap 5 with Rails 6, Yarn and Webpacker
12/06/2021
Gratis