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

Sdílet
Vložit
  • čas přidán 29. 07. 2021
  • episode source code:
    github.com/corsego/48-gem-rol...
    gem rolify source code:
    github.com/RolifyCommunity/ro...

Komentáře • 19

  • @keilmillerjr9701
    @keilmillerjr9701 Před 6 měsíci +1

    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 Před 2 lety +4

    The best channel about RoR, thanks dude

    • @SupeRails
      @SupeRails  Před 2 lety +1

      Appreciate that! There's much more to come ;)

  • @GajendraSingh-nl6rb
    @GajendraSingh-nl6rb Před 2 lety +1

    Best channel for ror developer

    • @SupeRails
      @SupeRails  Před rokem

      Thanks Gajendra! I'm trying my best!

  • @giritharan9231
    @giritharan9231 Před 2 lety +1

    Thank bro......

  • @gousebaig5318
    @gousebaig5318 Před rokem

    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?

  • @saqibhabib4678
    @saqibhabib4678 Před 2 lety

    i dont want to show admin role while editing roles?
    procedure please?

  • @erdemtopal4107
    @erdemtopal4107 Před 2 lety +1

    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  Před rokem

      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 Před 2 lety +1

    Super!

  • @irenerocabomuyalde6379

    😊😊😊😊

  • @gousebaig5318
    @gousebaig5318 Před rokem +1

    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  Před rokem

      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 Před 6 měsíci

      ​@@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.

  • @ledockol
    @ledockol Před 2 lety +1

    Тут и без русского все ясно. Просто берём и вставляем в свой проект) Спасибо

  • @okoni.alesre
    @okoni.alesre Před 2 lety +1

    Было на русском языке, эхх

    • @SupeRails
      @SupeRails  Před 2 lety +2

      russian RoR channel that might interest you:
      1=
      czcams.com/channels/N2waErKU52T_41pGgUimXw.html
      2=
      czcams.com/channels/uEXLUx21ofCvFx8wFwtfNQ.html