Rails with Active Record and Action Pack

所在平台: CourseraArchive

课程类别: 其他类别

大学或机构: CourseraNew

课程主页: https://www.coursera.org/archive/rails-with-active-record

课程评论:没有评论

第一个写评论        关注课程

课程简介

Johns Hopkins University

课程大纲

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.

课程评论(0条)

课程详情

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.

带有Active Record和Action Pack的Rails:您已经知道如何使用Ruby on Rails框架构建基本的Web应用程序。也许,您甚至参加了课程1,“ Ruby on Rails:简介”(强烈推荐),在那里您依赖外部Web服务作为“数据层”。但是,在您的内心深处,您始终知道,有时候会需要袖手旁观,学习SQL以能够与自己的关系数据库(RDBMS)进行交互。但是,使用Active Record对象/关系(ORM)框架可以更轻松地开始使用SQL。在本课程中,我们将能够使用Ruby语言和Active Record ORM框架来自动化与数据库的交互,从而快速构建所需的应用程序。   在带有Active Record和Action Pack的Rails中,我们将探索如何通过使用Active Record(一种Ruby宝石)来与关系数据库进行交互,Rails默认将其用于数据库访问。然后,我们将了解Active Record在客户端(浏览器)从服务器请求数据时在整个请求-响应周期中扮演什么角色,以及如何将数据提交到服务器。当然,在访问数据时,安全性至关重要!我们将讨论诸如SQL注入之类的漏洞,以及如何通过对访问数据的用户进行身份验证和授权来保护对数据的访问。学习本课程,以使用Active Record构建Ruby on Rails应用程序,以自动执行与数据库的详细SQL交互。

课程标签

0人关注该课程

主题相关的课程