Ruby on Rails, Part 5 of 5: Administration and API

Ruby on Rails, Part 5 of 5: Administration and API

LearnNow Online
Updated Aug 23, 2018

Course description

In this course we will walk through the process of building an authentication system into our application, normally this would be a very challenging process due to all of the requirements associated with an enterprise level user management system, however we will be leveraging the Devise gem, which will provide all of the functionality that we're going to need. Next we will integrate several authorization mechanisms that show and hide elements on the view depending on whether a user is signed in or not. We will also be integrating the popular active admin gem to generate a full administrator dashboard, including a variety of configuration changes that need to be made in order to have the gem work in conjunction with other gems in the Gemfile of our project. As our final feature build for the project we will walk through how to create an API for your application and have it respond to both JSON and XML data requests. To complete the section I'll discuss and name some additional resources and popular gems that can be used in your Ruby on Rails educational journey.

Each LearnNowOnline training course is made up of Modules (typically an hour in length). Within each module there are Topics (typically 15-30 minutes each) and Subtopics (typically 2-5 minutes each). There is a Post Exam for each Module that must be passed with a score of 70% or higher to successfully and fully complete the course.


This course teaches anyone who is interested in learning the basics of programming computers using Ruby on Rails. This course has no programming language prerequisites and only assumes basic familiarity with computer usage. Anyone with moderate computer end-user experience should be able to take this course. Please view the Ruby on Rails: Intro to Development, Ruby on Rails: Best Practices, Ruby on Rails: Data, Design and Deploy, and Ruby on Rails: Search and Sorting courses before taking this course.

Meet the expert

Jordan Hudgens

Jordan Hudgens has certifications for Ruby on Rails, Thinkful; Ruby on Rails,; Front End Development, Thinkful; and AngularJS, Thinkful. He is currently vice president of engineering for TRACKR in Midland, Texas and is working on his PhD in Computer Science from Texas Tech. In addition to Ruby, Jordan works with PHP, JavaScript, MySQL, Postgres, CSS3, C, C++, C#, Objective-C, and Python. He also works with the frameworks Rails (Ruby), Zend (PHP), and Django (Python), plus the libraries AngularJS, jQuery, and Backbone.js.

Video Runtime

71 Minutes

Time to complete

198 Minutes

Course Outline

Administration and API

Authentication (14:30)

  • Introduction (00:26)
  • What is it? (01:58)
  • Setup (00:36)
  • Update (01:05)
  • Demo: Install Devise (05:00)
  • Demo: Devise (05:03)
  • Summary (00:20)

Authorization (13:43)

  • Introduction (00:19)
  • Differences (02:55)
  • Implementation in View (00:56)
  • Demo: Authorization (04:42)
  • Demo: Authorizing Content (04:27)
  • Summary (00:22)

Active Admin (21:22)

  • Introduction (00:25)
  • Why use Active Admin? (01:13)
  • Installation (01:30)
  • Setup (01:00)
  • Customization (00:56)
  • Demo: Install Active Admin (03:42)
  • Demo: Initializers (04:50)
  • Demo: Site Preview (02:09)
  • Demo: Dashboard (05:10)
  • Summary (00:22)

API Creation (14:57)

  • Introduction (00:23)
  • What is an API? (01:21)
  • Implementation (01:03)
  • Demo: API Creation (03:50)
  • Demo: Cleanup (03:23)
  • Demo: Validation (01:42)
  • Demo: Layouts (02:55)
  • Summary (00:16)

Resources (06:53)

  • Introduction (00:16)
  • Resources: Books (03:08)
  • Resources: Gems (03:06)
  • Summary (00:22)