This week I’ve decided to step away from my usual venture into the world of Javascript and will delve into an incredibly useful Rails Gem called Active Admin. With just a few simple lines of code you can create an admin route that provides powerful insight into the models and data in your Rails projects. Let’s get stuck in!

rails new active_admin_example
rails g model User
rails g model Portfolio
rails g model Stock
gem 'activeadmin'
gem 'devise'
rails g active_admin:install
rails generate active_admin:resource User
rails generate active_admin:resource Portfolio
rails generate active_admin:resource Stock
rails db:migrate
rails db:seed
rails server

Full-Stack Web Developer | www.jordaneckowitz.com