Tutorial

Sign in as Another User Using Devise Token Auth in Rails Api Application

Guide on how to sign in as another user if you are admin using devise token auth in rails API application

Sanketkumar Karve

3 minute read

In normal Rails application, Sign in as another user if you are an admin comes in very handy when using devise and active admin. But was unable to find any content for Rails API app using devise token auth gem. As suggest by devise token auth, it uses devise gem for authentication so I looked into devise token auth gem for bypass_sign_in method.

Create active admin custom forms in Ruby on Rails

Create active admin custom forms in Ruby on Rails

Sanketkumar Karve

3 minute read

Active Admin is great gem for administration framework for Ruby on Rails applications.
Here you can find documentation to setup in you Rails applications.

Today, Our goal is to create a custom forms in Active Admin. We will create a User and Team model. When a Team is created a user is create along with it and assigned to team.
If you are using devise gem and already have existing User model that you can skip the following command to create User model.