{"comment":{"created_at":"2011-10-08T04:02:15Z","body":"@doabit, I added some updates and added the link to the wiki home. Others can contribute and maybe load some stuff that worked for them (with some explanations): https://github.com/gregbell/active_admin/wiki","updated_at":"2011-10-08T04:02:15Z","url":"https://api.github.com/repos/gregbell/active_admin/issues/comments/2330397","id":2330397,"user":{"avatar_url":"https://secure.gravatar.com/avatar/7178ca565c51f1332474b2acdf6d78c5?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/jcuervo","id":42446,"login":"jcuervo"}},"action":"created","issue":{"number":72,"created_at":"2011-05-20T17:39:15Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"After some heartburn trying to find a more correct solution, I went ahead and disabled CanCan authorization altogether for admin within routes.rb\r\n\r\n```ruby\r\nRightBonus::Application.routes.draw do\r\n  ActiveAdmin.routes(self)\r\n  devise_for :superadmin, ActiveAdmin::Devise.config\r\n  \r\n  ActiveAdmin::ResourceController.class_eval do\r\n    skip_authorization_check\r\n  end\r\n\r\n  #...\r\n```\r\n\r\nCanCan is common enough that there should be a better way to get it to play nicely. Without this hack, you get a lot of\r\n\r\n```\r\nCanCan::AuthorizationNotPerformed (This action failed the check_authorization because it does not authorize_resource. Add skip_authorization_check to bypass this check.):\r\n```\r\n\r\nIdeas?","comments":42,"title":"Ugly hack to get ActiveAdmin to play nicely with CanCan","updated_at":"2011-10-08T04:02:15Z","url":"https://api.github.com/repos/gregbell/active_admin/issues/72","id":932990,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/a1cbed4392b82a71ca89a3b470fe28a9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","url":"https://api.github.com/users/obie","id":3908,"login":"obie"},"html_url":"https://github.com/gregbell/active_admin/issues/72","labels":[{"name":"Feature","url":"https://api.github.com/repos/gregbell/active_admin/labels/Feature","color":"02e10c"}],"state":"open"},"legacy":{"issue_id":932990,"comment_id":2330397}}