If you need a custom page, you can have Active Admin render your own partial and you will probably need to make changes in the controller actions. Also, another strong feature is that you can configure the index filters according to your needs and they can be customized to use more that one attribute since they support Ransack. Something very important to mention is that Active Admin has a large community and good documentation compared to other administration gems, such as Rails Admin or Administrate. Despite the fact it can have a steep learning curve, specially at the beginning, due to it’s DSL, once you get used to it you can have admin pages with CRUD actions for any resource in no time. Most APIs typically need some level of resource administration and for that I would definitely recommend Active Admin. Although it was recently added to our Rails API Base, we have been using it in several projects of the company over the last year or so, and the results have been pretty good! It has proven to be a light gem, which is very fast, customizable and easy to use. When pagination comes into the discussion, I would definitely recommend Pagy. Not only will you have one place in the codebase for the authorization logic, making the system more robust, but also it will help to clean up the controllers, improving the readability. Here at Rootstrap, we find Pundit to be the perfect ally against those issues. I guess authorizing every request on an API can be achieved in the controller, but that is not scalable at all and may ease the introduction of vulnerabilities in an application. On top of that, you can also customize the different flows mentioned if you want to offer a different experience, and while this may be a little more challenging, it’s not rocket science! Handling authorization In comparison to other alternatives available, one of the best perks that comes with Devise Token Auth is the very little effort you have to invest to get things up and running.
![rails anychart gem rails anychart gem](https://www.liveblogspot.com/wp-content/uploads/2019/12/asd.jpg)
Also, it handles email confirmation if enabled and supports the use of multiple user models, giving you the possibility to manage the authentication of different types of users at the same time using groups.
#Rails anychart gem password#
With very little setup, this gem provides registration, sign in, sign out and reset password flows out of the box, as well as very useful helper functions. If that’s the case, then you’ll get familiar with Devise Token Auth very easily. This gem is built on top of Devise, one of the most popular authentication gems for Rails which you may have already worked with. If you are building a Rails API, then you will probably need token-based authentication and that is when Devise Token Auth comes in.
![rails anychart gem rails anychart gem](https://cometkartsales.com/images/D/g1452-enginemount-2.jpg)
Are you new to Rails? Or maybe just looking for any cool gem to use in your new API? Here is a list of gems we have on our Rails API Base that we consider a must-have in every Rails API project.