{"issue":{"milestone":null,"user":{"id":549987,"login":"vicngtor","url":"https://api.github.com/users/vicngtor","avatar_url":"https://secure.gravatar.com/avatar/cc77830bec975d8a7db181ebbb64ffad?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"cc77830bec975d8a7db181ebbb64ffad"},"title":"Can we get an official wiki for integrating CanCan with Active admin? ","created_at":"2011-09-07T01:24:15Z","updated_at":"2011-12-16T19:24:12Z","labels":[{"name":"Documentation","url":"https://api.github.com/repos/gregbell/active_admin/labels/Documentation","color":"d7e102"},{"name":"Support","url":"https://api.github.com/repos/gregbell/active_admin/labels/Support","color":"d7e102"}],"state":"open","id":1585716,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"html_url":"https://github.com/gregbell/active_admin/issues/461","closed_at":null,"body":"There's a thread going on about an ugly hack to devise and not all of the recommended methods there work. \r\n\r\nCan we get an official guide to integrate cancan with active admin? \r\n\r\nIn particular, I have this in my application_controller:\r\n\r\ncheck_authorization :unless => :devise_controller?\r\n\r\nCan the wiki also include steps needed to get active admin working by starting at getting pass check_authorization?\r\n\r\n","number":461,"url":"https://api.github.com/repos/gregbell/active_admin/issues/461","comments":8,"assignee":null},"comment":{"user":{"id":368767,"login":"jmonster","url":"https://api.github.com/users/jmonster","avatar_url":"https://secure.gravatar.com/avatar/c16efa24b17837abcb9a51da9c0d205a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"c16efa24b17837abcb9a51da9c0d205a"},"created_at":"2011-12-16T19:24:11Z","updated_at":"2011-12-16T19:24:11Z","id":3181482,"body":"+1 and I'm still having issues with subtle features like the index pages for assets not showing whats available to the current user based on their abilities. I've tried explicitly setting values:\r\n\r\n\r\n        @campaigns = Campaign.accessible_by(@current_ability,:read).page params[:page]\r\n\r\n\r\nbut it blows up with sql errors -- it works fine if you drops into the rails console and fire the command directly.","url":"https://api.github.com/repos/gregbell/active_admin/issues/comments/3181482"},"action":"created"}