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)
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
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?
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)
That's cool. Tested it and indeed works.
Great explanation. Easy to follow. Thanks!
You're welcome!
Really nice intro to the Cancancan gem. Thank you
really amazing video. I learned a lot from here. Thanks for the author of the video. 👌👌👌👌👌👌👌👌👌👌
Glad you liked it!
Great! Better than documentation. Thanks!
Of course!
Good tutorial and greatly well explained!
Thank you so much
You're most welcome!
Thanks for the video
thank you!
Amazing video!
Please also provide a video on Active_Admin gem
Thnks Alot
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
Nice job, brother.
GOOD!
How do I know the user is an admin? You rely on where to know whether it is an admin or a user
3:11
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?
Yes, I would imagine so. That makes sense :D
@@danielshafer Woah thanks for the reply.
@@MakeRandomVids Of course! Hope the video was helpful!
same as petergate gem right?
How did you delete multiple comments at 6:43 ?