Ruby on Rails #48 Gem Rolify for assigning user roles - Complete Guide

  Рет қаралды 10,417

SupeRails

SupeRails

Күн бұрын

Пікірлер: 19
@keilmillerjr9701
@keilmillerjr9701 Жыл бұрын
Thank you. The difference between pundit and rolify is not so clear, unless you watch both your videos in the order you have filmed. I obtained a firm enough understanding of rolify that I was able to expand outside of this video. * Seeding default roles * Applying a specific role for the first user * Disable changing roles within a select menu unless you have a specific role
@AndyDev404
@AndyDev404 3 жыл бұрын
The best channel about RoR, thanks dude
@SupeRails
@SupeRails 3 жыл бұрын
Appreciate that! There's much more to come ;)
@GajendraSingh-nl6rb
@GajendraSingh-nl6rb 3 жыл бұрын
Best channel for ror developer
@SupeRails
@SupeRails 2 жыл бұрын
Thanks Gajendra! I'm trying my best!
@giritharan9231
@giritharan9231 3 жыл бұрын
Thank bro......
@irenerocabomuyalde6379
@irenerocabomuyalde6379 2 жыл бұрын
😊😊😊😊
@erdemtopal4107
@erdemtopal4107 3 жыл бұрын
Thanks for videos. I'm following you from udemy and here. I've a question: I'd like to control and approve users' post before publishing. How can i do this? Do you have a video about it?
@SupeRails
@SupeRails 2 жыл бұрын
You can do it the same way as it'd done with "Courses" in the udemy 25 gems video. Quick summary: - all posts should have 3 states: [draft/moderation/approved] - draft by default - when user clicks "create", the state is changed to "moderation" - admin has a view for all posts in moderation status, can change status - only posts in status "approved" are visible to the public
@remotronic
@remotronic 3 жыл бұрын
Super!
@SupeRails
@SupeRails 3 жыл бұрын
Thank you! Cheers!
@gousebaig5318
@gousebaig5318 2 жыл бұрын
I have added a new role. This role will only be able to create announcements, View announcements created by him or added as “content editor” for the announcements created by another “Content Creator"? How can I add these limits for that role?
@gousebaig5318
@gousebaig5318 2 жыл бұрын
I need to add a new role as a creator and that creator have only some fields to edit but not have all access as admin have in rails7 admin page?
@SupeRails
@SupeRails 2 жыл бұрын
In the form, you can render different fields based on roles. Additionally, you can restrict updating specific attributes based on role like this: blog.corsego.com/permit-params-by-current-user-roles
@keilmillerjr9701
@keilmillerjr9701 Жыл бұрын
​@@SupeRails You should probably stick to rails with your website, instead of injecting activism. I know about the coop Biden/Nuland/Pyatt did to Yanukovych in 2014. We have the audio tape. We know about Biden's bribery with the firing of prosecutor Shokin for investigating corruption with Burisma. Biden admitted it on live TV. We also have his sons laptop. We know the Biden's sat on the board of Burisma. We know about Sam Bankman Freids money peddling scheme to Ukraine and back to USA democrats. That was the largest financial fraud case in history. We know that Ukraine is the only country to have a faction of the military that considers themselves Nazis. We know that the FBI has massively failed audits for 5 consecutive years. We know that USA and NATO weapons are being sold on the black market. Zelinski refuses to hold elections. Zelinski banned orthodox Christians. NATO said they wouldn't expand onto the Russian border, but attempted to. USA bombed the nordstream pipeline, performing the largest Eco-terrorist attack in history. USA involvement in the coop caused the Peoples Republic on Donetsk to be formed. USA/NATO refuses to recognize it. The same group will not recognize "democracy" when they voted to be annexed by Russia. I guess they are tired of 9 years being bombed by the very same faction that claims the land is part of Ukraine, but not the people. USA also send dirty radioactive bombs to Ukraine. We know about the deal Zelinski made with Black Rock. There is a pattern here. The USA starts wars so the elite can profit.
@saqibhabib4678
@saqibhabib4678 3 жыл бұрын
i dont want to show admin role while editing roles? procedure please?
@ledockol
@ledockol 3 жыл бұрын
Тут и без русского все ясно. Просто берём и вставляем в свой проект) Спасибо
@okoni.alesre
@okoni.alesre 3 жыл бұрын
Было на русском языке, эхх
@SupeRails
@SupeRails 3 жыл бұрын
russian RoR channel that might interest you: 1= kzbin.info/door/N2waErKU52T_41pGgUimXw 2= kzbin.info/door/uEXLUx21ofCvFx8wFwtfNQ
Ruby on Rails #49 gem Pundit for Authorization - Complete Guide
17:18
БОЙКАЛАР| bayGUYS | 27 шығарылым
28:49
bayGUYS
Рет қаралды 1,1 МЛН
Ruby on Rails #62 Live session: User Roles: Different approaches
40:57
Authentication basics with Ruby on Rails
46:17
CJ Avilla (cjav_dev)
Рет қаралды 13 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,6 МЛН
Polymorphic associations with Ruby on Rails - like all the things
20:54
CJ Avilla (cjav_dev)
Рет қаралды 6 М.
Pundit Gem For Authorization In Ruby On Rails 7
21:27
Deanin
Рет қаралды 8 М.
Styling Our Devise Views - Ruby On Rails Friend List App #7
25:18
Rails 7.1 Authentication From Scratch
44:31
GoRails
Рет қаралды 22 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 39 М.
Ruby on Rails #60 Hotwire Turbo Streams Autocomplete Search
27:28