ActiveAdmin VS CanCanCan

Compare ActiveAdmin vs CanCanCan and see what are their differences.

ActiveAdmin

The administration framework for Ruby on Rails applications. (by activeadmin)

CanCanCan

The authorization Gem for Ruby on Rails. (by CanCanCommunity)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
ActiveAdmin CanCanCan
22 19
9,447 5,511
0.1% 0.2%
9.3 1.8
6 days ago 22 days ago
Ruby Ruby
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

ActiveAdmin

Posts with mentions or reviews of ActiveAdmin. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-28.
  • Ask HN: Why aren't Django Admin style dashboards popular in other frameworks?
    6 projects | news.ycombinator.com | 28 Oct 2023
    Can you clarify what's the "tremendous value" you're getting out of the Django admin?

    At Heii On-Call https://heiioncall.com/ we are using Active Admin https://activeadmin.info/ for Ruby on Rails, which seems quite similar to the Django admin. In my experience, it's mostly useful as a fairly basic read-only view of what's in the database. In Rails, it's so easy to whip together a custom view that we tend to do that, and the Active Admin is nice to have but I wouldn't say "tremendous value".

  • Top 5 Ruby on Rails Gems
    5 projects | dev.to | 4 Jan 2023
    Github Link : https://github.com/activeadmin/activeadmin
  • View code coverage (active_admin and orther .arb file)
    2 projects | /r/rails | 14 Sep 2022
    for those who know [https://activeadmin.info/](https://activeadmin.info/) it uses a file format [https://github.com/activeadmin/arbre](https://github.com/activeadmin/arbre)
  • Show HN: Build Ruby on Rails apps 10x faster – Avo
    12 projects | news.ycombinator.com | 21 Jun 2022
    Very neat! My first thought was that this was a competitor to https://bullettrain.co/.

    Looking into it a bit more, it seems more aimed at building admin panels than whole apps. I guess it competes against tools like https://activeadmin.info/?

  • From partials to ViewComponents: writing reusable front-end code in Rails
    11 projects | dev.to | 3 Jun 2022
    We briefly considered migrating to a full-grown Rails admin interface, such as ActiveAdmin, RailsAdmin, Administrate or Avo. We especially liked Avo which is built on a very modern stack similar to ours (Tailwind + Hotwire + ViewComponents). In the end, we didn’t go this route as we found some of the options a bit too restrictive (even though Avo is very flexible) and we did not feel like trying to amend it to our needs. For example, Avo renders forms in a 1-field-per-row layout while we wanted something more similar to the Tailwind UI Stacked form layout. Nevertheless, we found a great deal of inspiration in the Avo code and its design principles.
  • Ask HN: Easiest way to build a CRUD app
    19 projects | news.ycombinator.com | 13 Feb 2022
    I second Rails. It's incredibly polished and has really good gems to speed up dev. ActiveAdmin is a great gem if you need to quickly make an admin dashboard. It was useful when I had a small consultancy.

    https://activeadmin.info/

  • Eager to help a Junior without experience?
    1 project | /r/rails | 8 Jan 2022
  • Admin Framework for Rails
    10 projects | /r/rails | 10 Nov 2021
    See an example: https://activeadmin.info It provides a fast way to create back office functionality.
  • We built an open-source platform (3k stars on GitHub) for building & deploying react based internal tools.
    3 projects | /r/reactjs | 13 Sep 2021
    [1] https://activeadmin.info/
  • Stop Building a General Purpose API to Power Your Own Front End
    2 projects | news.ycombinator.com | 13 Sep 2021
    I can't speak much about Rails, as I've only played with it. But I've used a lot Django in the past.

    Regarding the Django admin (in rails you have ActiveAdmin[1]) think if it just as a glorified database explorer. It is an internal tool for developers, product managers and maybe for your support team. It is in no way thought to be used by end users. Every attempt I've seen to use it as such was a catastrophic failure.

    With Django, if you know plain HTML and CSS, with the tools I've mentioned in the comment you're responding to, you can build almost anything... For example, let's say you need a highly interactive client side table.... you can always just attach a Vue or a React component for it by using Unpoly compilers [2].

    I'd say this stack is less useful the more your app needs to work fully offline... but if you don't have that constraint... I cannot think of anything that can't be built faster and safer.

    [1] https://activeadmin.info/

    [2] https://unpoly.com/up.compiler

CanCanCan

Posts with mentions or reviews of CanCanCan. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-07.
  • A guide to Auth & Access Control in web apps 🔐
    8 projects | dev.to | 7 Nov 2023
    https://github.com/CanCanCommunity/cancancan (Ruby on Rails ABAC) Same like casl.js, but for Ruby on Rails! Casl.js was actually inspired and modeled by cancancan.
  • Authentication, Roles, and Authorization... oh my.
    6 projects | /r/rails | 26 Apr 2023
    For authorization, I'm going back and forth with Pundit and CanCanCan
  • Feature flags in Rails: How to roll out and manage your features like a pro
    2 projects | dev.to | 7 Apr 2023
    This code mounts the Flipper UI at the /flipper endpoint in your application. The RoleConstraint class is used to restrict access to the UI to users who have the manage role. You can customize this constraint to suit your specific needs. In this case, we're using the CanCanCan gem to gate specific routes to admin users. If you haven't worked with CanCanCan before, ignore the RoleConstraint portion.
  • How would you store roles with up to 64 permissions?
    2 projects | /r/rails | 9 Mar 2023
    Would you do : 1. a roles table with the name of the role and 64 booleans? 2. A roles table with one JSON field? (using rails json data type) 3. A roles table and a permissions table, similar do what is suggested in the cancancan developpers guide:
  • Protect your GraphQL data with resource_policy
    3 projects | dev.to | 20 Feb 2023
    Expressing authorization rules can be a bit challenging with the use of other authorization gems, such as pundit or cancancan. The resource_policy gem provides a more concise and expressive policy definition that uses a simple block-based syntax that makes it easy to understand and write authorization rules for each attribute.
  • Top 5 Ruby on Rails Gems
    5 projects | dev.to | 4 Jan 2023
  • Permissions (access control) in web apps
    7 projects | dev.to | 30 Nov 2022
    https://github.com/CanCanCommunity/cancancan (Ruby on Rails ABAC) Same like casl.js, but for Ruby on Rails! Casl.js was actually inspired and modeled by cancancan.
  • Web-app security risks demonstrated
    3 projects | dev.to | 1 Nov 2022
    In production code you would most likely use a library for access control, such as CanCanCan
  • YAGNI exceptions
    3 projects | /r/programming | 17 Oct 2022
    PS If you do mobile / web work (or something else with "detached" UI), I find that declarative access control rules are far superior to imperative ones, because they can be serialized and shipped over the wire. For example, backend running cancancan can be easily send the same rules to casl on the frontend, while if you used something like pundit to secure your backend, you either end up re-implementing it in the frontend, or sending ton of "canEdit" flags with every record.
  • Best practice for displaying info to different user roles?
    3 projects | /r/rails | 4 Oct 2022
    You can use a gem like cancancan (https://github.com/CanCanCommunity/cancancan )to manage authorization, and its helpers to show stuff based on what a user can do

What are some alternatives?

When comparing ActiveAdmin and CanCanCan you can also consider the following projects:

RailsAdmin - RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data

Pundit - Minimal authorization through OO design and pure Ruby classes

Administrate - A Rails engine that helps you put together a super-flexible admin dashboard.

rolify - Role management library with resource scoping

Trestle - A modern, responsive admin framework for Ruby on Rails

Action Policy - Authorization framework for Ruby/Rails applications

Avo - Build Ruby on Rails apps 10x faster

Authority

go-admin - A golang framework helps gopher to build a data visualization and admin panel in ten minutes

Declarative Authorization - An unmaintained authorization plugin for Rails. Please fork to support current versions of Rails

ActiveScaffold - Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.

AccessGranted - Multi-role and whitelist based authorization gem for Rails (and not only Rails!)