motor-admin-rails
CanCanCan
Our great sponsors
motor-admin-rails | CanCanCan | |
---|---|---|
14 | 19 | |
692 | 5,495 | |
3.8% | 0.3% | |
7.2 | 2.2 | |
7 days ago | 14 days ago | |
Ruby | Ruby | |
GNU Affero General Public License v3.0 | MIT License |
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.
motor-admin-rails
-
From Node to Ruby on Rails
I think the coolest thing about Rails is actually the great amount of high quality Ruby gems for Rails.
For instance, you can bootstrap a powerful Admin panel for your Rails project in no time with https://github.com/motor-admin/motor-admin-rails gem.
-
Admin Framework for Rails
https://github.com/motor-admin/motor-admin-rails - just adding a link here. u/dpaluy motor admin doesn't require any integration with your rails app js build stack (doesn't depend on webpack/esbuild) - due to that it's very easy to integrate it with any existing app.
-
Show HN: Deploy a self-hosted, no-code admin panel in less than a minute
1. Use git to create commits with new configurations in motor.yml and deploy/pull that git repo on the production host in order to update the configs.
2. MOTOR_SYNC_REMOTE_URL=https://remote-app-url/ MOTOR_SYNC_API_KEY=secure-random-string rake motor:sync to sync configurations directly to production app host via API.
There a bit of info about configurations sync between environment here:
https://github.com/motor-admin/motor-admin-rails#configurati...
Thanks, it's possible to contribute into https://github.com/motor-admin/motor-admin-rails it's a ruby gem which powers motor admin app - support for new data sources and more data visualization options (cohort) are welcomed :)
There is a ruby gem for rails projects: https://github.com/motor-admin/motor-admin-rails
It's hard to say how difficult it could be but some companies already migrated from activeadmin to motor admin gem for their rails projects and they claim that it was worth it :)
-
ActiveAdmin, I'm looking at you
Motor admin is a much much better alternative https://github.com/motor-admin/motor-admin-rails. Have been using it production for a few months now, and it's awesome
You should try https://github.com/motor-admin/motor-admin-rails This admin panel gem doesn't use DSL or configuration files and can be customized directly via the UI. More complex things like custom forms and actions can be added via regular rails API controllers.
-
Motor Admin v0.2 - a modern ActiveAdmin and Blazer replacement
User roles and permissions via CanCan (learn more).
CanCanCan
-
A guide to Auth & Access Control in web apps ๐
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.
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
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?
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
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
-
Permissions (access control) in web apps
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
In production code you would most likely use a library for access control, such as CanCanCan
-
YAGNI exceptions
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?
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?
Pundit - Minimal authorization through OO design and pure Ruby classes
rolify - Role management library with resource scoping
RailsAdmin - RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data
Avo - Build Ruby on Rails apps 10x faster
Action Policy - Authorization framework for Ruby/Rails applications
Authority
Declarative Authorization - An unmaintained authorization plugin for Rails. Please fork to support current versions of Rails
AccessGranted - Multi-role and whitelist based authorization gem for Rails (and not only Rails!)
oso - Oso is a batteries-included framework for building authorization in your application.
Trestle - A modern, responsive admin framework for Ruby on Rails
daisyui - ๐ผ ๐ผ ๐ผ ๐ผ ๐ผ โThe most popular, free and open-source Tailwind CSS component library
acl9 - Yet another role-based authorization system for Rails