Learn your way! Get started

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

with expert Jordan Hudgens


Watch trailer


Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack

Release date 11/4/2014
Level Beginner
Runtime 1h 11m
Closed captioning Included
Transcript Included
eBooks / courseware Included
Hands-on labs N/A
Sample code Included
Exams Included


Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



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.

Prerequisites

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.

Learning Paths

This course is part of the following LearnNowOnline SuccessPaths™:
Ruby Development

Meet the expert

Jordan Hudgens has certifications for Ruby on Rails, Thinkful; Ruby on Rails, Bloc.io; 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.

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)