Authorization on Rails (CanCanCan Demonstration)

Поделиться
HTML-код
  • Опубликовано: 24 ноя 2024

Комментарии • 27

  • @AlessandroRodi
    @AlessandroRodi 6 лет назад +4

    Nice tutorial. One thing about the controller: load_and_authorize_resource loads also the object, therefore you should remove the lines where you load a Post in each method (like @post = Post.find or @post = Post.new)

    • @IvanRaszl
      @IvanRaszl 5 лет назад +1

      That's cool. Tested it and indeed works.

  • @IvanRaszl
    @IvanRaszl 5 лет назад +3

    Great explanation. Easy to follow. Thanks!

  • @fendevfendev5903
    @fendevfendev5903 5 лет назад

    Really nice intro to the Cancancan gem. Thank you

  • @uzbekdev4980
    @uzbekdev4980 2 года назад +2

    really amazing video. I learned a lot from here. Thanks for the author of the video. 👌👌👌👌👌👌👌👌👌👌

  • @Denis-bd8jr
    @Denis-bd8jr 5 лет назад +1

    Great! Better than documentation. Thanks!

  • @rsteveyoung
    @rsteveyoung 7 лет назад +2

    Good tutorial and greatly well explained!

  • @mehtabahmed6092
    @mehtabahmed6092 2 года назад

    Thank you so much

  • @irishvirus2009
    @irishvirus2009 6 лет назад

    Thanks for the video

  • @vinogradova82
    @vinogradova82 7 лет назад +1

    thank you!

  • @iago7340
    @iago7340 4 года назад

    Amazing video!

  • @usmanazmat3649
    @usmanazmat3649 6 лет назад

    Please also provide a video on Active_Admin gem
    Thnks Alot

  • @hassinijalil5533
    @hassinijalil5533 3 года назад

    Hello
    I have a question , i want in my project to only the manager access to the dashboard page ,
    and i have in this project students and one manager of department
    i want the solution and thank you

  • @schwabsauce
    @schwabsauce 6 лет назад

    Nice job, brother.

  • @keviniori
    @keviniori 6 лет назад

    GOOD!

  • @huuhuu7531
    @huuhuu7531 4 года назад +1

    How do I know the user is an admin? You rely on where to know whether it is an admin or a user

    • @ukazap
      @ukazap 4 года назад

      3:11

  • @MakeRandomVids
    @MakeRandomVids 4 года назад

    I see this post is 3 years old. But, wonder if you can still reply to me. For that 'edit' functionality, can't I just do use and selectively hide the edit button? Also, redirect user to some other page with alert when user tries to access /edit/1, which is someone elses' post?

    • @danielshafer
      @danielshafer  4 года назад

      Yes, I would imagine so. That makes sense :D

    • @MakeRandomVids
      @MakeRandomVids 4 года назад

      @@danielshafer Woah thanks for the reply.

    • @danielshafer
      @danielshafer  4 года назад

      @@MakeRandomVids Of course! Hope the video was helpful!

  • @AJ-rs3ub
    @AJ-rs3ub 6 лет назад

    same as petergate gem right?

  • @pushpam_kumar_
    @pushpam_kumar_ 5 лет назад

    How did you delete multiple comments at 6:43 ?