I've got Rails 6/Grape API app with active admin on board. Right now I want to have activity logs: monitoring history of changes made by admin such as editing or adding user data. The ideal scenario would be to download this logs in to CSV/XML file.
Is there any gem you can recommend which can cover such an action? Honestly I'd like to avoid writing this from scratch.
Take a look at ActiveAdmin Audit and ActiveAdmin Versioning. You can also integrate PaperTrail yourself.
Related
I'm trying to make an admin panel for a website that is already running. I've never deployed an admin panel feature, so I want to ask you what the best and most common approach to creating one, and what I need to look out for when I launch it using a subdomain admin.mydomain.com. This website already has users and sessions controller, and I also would like to know how to differentiate two different authentication systems.
Thanks!
you can use Active admin gem.
see the complete documentation from this link https://activeadmin.info/0-installation.html
I am thinking of doing a website for a small local restaurant to build my portfolio.
I am in the process of planning out what functionality there would be and the first thing was the menu page. I would like the restaurant owners to be able to sign in and make changes to menu like prices, description and items. I have also been using rails gem devise to use authentication so I was thinking of making an admin account so that they can log in and make the changes. Does it sound like an okay plan? If not, whats the best route? And will CMS like Refinery and Spina also achieve the same objective like crud?
I want add to my rails application admin module, but I don't know which chose. I saw that most popular is activeadmin and rails_admin. I need some admin in which I can create my pages with other handlers. Can this admin modules help me create admin panel or not? Maybe I can use something else?
Both, active_admin and rails_admin provide convenient ways to access and manage your database from a GUI interface. How you present that data is totally upto you. If by admin panel, you mean an admin dashboard like this, neither of them does that:
Admin dashboards are very application specific and depends on what type of data you want to display. active_admin and rails_admin will help you get data from your application but it's then upto you to display that data in whatever format/interface you want.
I'm allowing users to create sites within my application, and I want to provide simple stats to them like the number of page views. Is there a Rails gem that I can implement to do this?
Check this similar question simple hit counter for page views in rails. Based on the answer to the mentioned question, a gem named impressionist was created by John McAliley. The gem is Rails 3 ready, so you can include it in your app directly.
Try out the StatsMix gem. You can use it to track any action or event in your application. Disclaimer: I'm the founder and it's a subscription based (paid) service. We do have a free developer plan though and have the abilty to embed charts and dashboards to easily allow for providing stats to your users.
I am working on Rails 3.2. I am currently building tenant-based site which provides registration to the users. For users those want to register to the site, they need to get subscription plan provided from the site. Based on these subscriptions, I am supposed to provide different authorizations to users. For example, Plan A-subscription will allow user to create some 100 contacts, 100 events and no document uploads, while Plan B-subscription will allow user to create some 250 contacts, 200 events with document uploading features, etc. with further plans.
For this, I require data access authorizations at model level too.
In a nutshell, these functioning specifically lists all authorizations and Access Control lists for the users.
As working on Rails 3.2, I have found few gems which will help to declare authorization-rules for users.
fat_model_auth
declarative_authorization
These gems allow to specify authorization-rules for the application. But I need authorization-rules also at Model level while limiting the access to the database from the user's side. Please suggest me with few documentation or gems to get through...
Any suggestions would be helpful..
I would suggest
CanCan
there is a nice screencast on it aswell.
As the creator of fat_model_auth I can recommend it.
https://github.com/brentgreeff/fat_model_auth
Just released a new gem which works great with Rails 5.