About this Course
You already know how to build a basic web application with the Ruby on Rails framework. Perhaps, you have even taken “Course 1 – Introduction to Ruby on Rails” (we highly recommend it) and you relied on external web services to be your “data layer”. But in the back of your mind, you always knew that there will come a time when you will 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 ActiveRecord Object/Relational (ORM) framework. In this course we will be able to use the Ruby language and the ActiveRecord ORM framework to automate interactions with the database to quickly build the application we want.
In this course, we will explore how to interact with relational databases by using ActiveRecord, a Ruby gem, which Rails uses by default for database access. We will then take a look at what role ActiveRecord 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 ActiveRecord to automate the detailed SQL interactions with our database.
Rails 的 Active Record 与 Action Pack is course 2 of 6 in the Ruby on Rails Web Development Specialization.
Adjunct Professor, Graduate Computer Science
Whiting School of Engineering