Get started with custom lists to organize and share courses.

Sign up

Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Rails with Active Record and Action Pack

Johns Hopkins University via Coursera

4 Reviews 101 students interested
Found in Databases, Ruby
  • Provider Coursera
  • Cost Free Online Course (Audit)
  • Session Upcoming
  • Language English
  • Certificate Paid Certificate Available
  • Start Date
  • Duration 4 weeks long
  • Learn more about MOOCs

Taken this course? Share your experience with other students. Write review

Overview

You already know how to build a basic web application with the Ruby on Rails framework. Perhaps, you have even taken Course 1, "Ruby on Rails: An Introduction" (we highly recommend it) where you relied on external web services to be your “data layer”. But in the back of your mind, you always knew that there would come a time when you would need to roll up your sleeves and learn SQL to be able to interact with your own relational database (RDBMS). But there is an easier way to get started with SQL using the Active Record Object/Relational (ORM) framework. In this course, we will be able to use the Ruby language and the Active Record ORM framework to automate interactions with the database to quickly build the application we want.

In Rails with Active Record and Action Pack, we will explore how to interact with relational databases by using Active Record, a Ruby gem, which Rails uses by default for database access. We will then take a look at what role Active Record plays in the overall request-response cycle, when a client (the browser) requests data from the server, as well as how to submit the data to the server. Of course, when accessing data, security is of paramount importance! We will talk about vulnerabilities such as SQL injection, as well as how to secure access to data by authenticating and authorizing users accessing the data. Take this course to build a Ruby on Rails application with Active Record to automate the detailed SQL interactions with our database.

Syllabus

Introduction to Active Record
-In this module, we will begin exploring the database-interaction portion of Rails. We will start off with migrations that enable you to create and modify the schema of the database. We will then move on to discussing the Active Record gem Rails uses, which enables you to create, retrieve, update, and delete the data from the database. Before looking at Active Record, we will talk about some advanced Ruby features of meta-programming that will help facilitate our Active Record journey.

Deep Dive into Active Record
-In this module, we will continue exploring Active Record and look at ways to code advanced queries without exposing ourselves to risk from SQL injection (as well as what SQL injection actually is). We will then look at expressing relationships between entities in Active Record and validating the data being saved to the database.

Introduction to Action Pack
-In this module, we will introduce Rails' Action Pack, which is a combination of Action Controller and Action View. We will see how REST has influenced routing in a Rails application and also talk about partials, form helpers, and layouts.

Security and Nested Resources in Action Pack
-In this module, we will talk about how to deal with nested resources in Rails. We will then talk about securing your app with a username and password combination for authentication purposes and making sure that users are only authorized to make changes to and view their own resources. We will finish off the module by discussing pagination and deploying to Heroku Paas (Platform as a Service).

Taught by

Kalman Hazins, MS

Class Central Charts

Tags

Help Center

Most commonly asked questions about Coursera Coursera

Reviews for Coursera's Rails with Active Record and Action Pack
4.0 Based on 4 reviews

  • 5 star 25%
  • 4 stars 50%
  • 3 star 25%
  • 2 star 0%
  • 1 star 0%

Did you take this course? Share your experience with other students.

Write a review
  • 1
Derek H
4.0 2 years ago
Derek completed this course, spending 8 hours a week on it and found the course difficulty to be medium.
This course is much better than the previous course "Ruby on Rails: An Introduction". If you struggled through the first class, this one is much more user friendly and easy to go along with.This is definitely a Rails course, with the first course being a Ruby course.

The professor's audio issues are much less pronounced in this course and less noticeable. The lectures are not as monotone and boring to listen to as well.

The modules are broken down into better sections that flow together. The materials, though older, can still be followed and course materials can be us…
Was this review helpful to you? Yes
Roberto S
4.0 4 years ago
by Roberto completed this course and found the course difficulty to be medium.
1 person found
this review helpful
Was this review helpful to you? Yes
Kamonwat S
5.0 2 years ago
by Kamonwat completed this course.
Was this review helpful to you? Yes
Xenofon K
3.0 3 years ago
by Xenofon completed this course.
Was this review helpful to you? Yes
  • 1

Class Central

Get personalized course recommendations, track subjects and courses with reminders, and more.

Sign up for free

Never stop learning Never Stop Learning!

Get personalized course recommendations, track subjects and courses with reminders, and more.