I am using the Cancan accessible_by to retrieve a ActiveRecord::Relation result (example code below). Is there any way to order the results during the accessible_by call?
I have a problem with 3 levels nesting of models in CanCan combined with Inherited Resources. I\'ve read that we should nest everything up to 2 levels, but I had to put everything under account model
What exactly is happening when I do: @patient.course_enrollments.accessible_by(current_ability开发者_开发知识库)
According to all documentation, the :read action is aliased to both :index and :开发者_Python百科show:
I\'m relatively new to rails (3), and am building an application, using CanCan, where there are 3 tiers of users.
I use devise and created two models, Doctor and Patient. When I write load_and_authorize_resource cancan gives an exception
I successfully made login system with Devise and CanCan, and I have 3 types of users. Admin, internal and global users. I created Controllers and index actions: Admin, Cpanel, Report and State, and I
I made authentication in my Rails 3 app fallowed by Tony\'s tutorial and this second tutorial开发者_运维技巧.
I made authentication in my Rails 3 app fallowed by Tony\'s tutorial I don\'t want public registrations on my app, just to create new users with Admin account, but I can\'开发者_StackOverflowt create
I was trying to test a simple index view, which has following code inside: - if can? :destroy, MyModel