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.
提供方
Rails 的 Active Record 与 Action Pack
约翰霍普金斯大学課程信息
學生職業成果
25%
21%
您將獲得的技能
學生職業成果
25%
21%
提供方

约翰霍普金斯大学
The mission of The Johns Hopkins University is to educate its students and cultivate their capacity for life-long learning, to foster independent and original research, and to bring the benefits of discovery to the world.
教學大綱 - 您將從這門課程中學到什麼
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).
審閱
來自RAILS 的 ACTIVE RECORD 与 ACTION PACK的熱門評論
A nice continuation to course 1 of this specialization, deeper dive into RoR, among other things you will learn how to manipulate/display database data and how to authenticate/authorize users!
Great explanation of not so easy to understand concepts. Lecturer provides good example that can help material better and see how what you've learned can be applied to real world scenarios.
Great course. It open ed up my eyes to how simple it can be to generate a workable MVC web application without having to dive too deep into the working of the application,
This course continues the Introduction with the same test-driven approach and delicious intensity of the material. Efforts to finish the course will be greatly rewarded.
常見問題
我什么时候能够访问课程视频和作业?
我购买证书后会得到什么?
Is financial aid available?
完成课程后,我会获得大学学分吗?
還有其他問題嗎?請訪問 學生幫助中心。