Adding a User Resource to a Rails Application

This course teaches how to represent data models as resources in your Rails application, using various routines to manage the underlying database schema. This provide a convenient way to abstract data models from the app, allowing high reusability.
Course info
Level
Intermediate
Updated
Mar 2, 2021
Duration
1h 38m
Table of contents
Description
Course info
Level
Intermediate
Updated
Mar 2, 2021
Duration
1h 38m
Description

Any modern application will need to save data in a data store and more often than not, it’s a database. Unfortunately there are different types of databases, and addressing one will automatically make your application coupled with the technology. In this course, Adding User Resource in a Rails Application, you’ll learn to utilize the abstraction API of Rails in the data persistence level. First, you’ll explore how to define and implement your data models using ActiveRecord. Next, you’ll discover how to perform associations between several models to create relationships for derived data as needed by your application. Finally, you’ll learn how to apply your own logic to address software requirements in the persistence layer to implement business rules of your software. When you’re finished with this course, you’ll have the skills and knowledge of designing implementing data models as resources needed to provide data persistence in your application.

About the author
About the author

Developer. Entrepreneur. Pianist. Guitarist. Raphael has a passion for bringing software to the masses and equipping people with the right mindset in using programming to solve real world problems. Aside from programming and teaching, Raphael does a lot of research and development in the academe in the field of computer science, specifically machine learning.

More from the author
What's New in Ruby 3
Beginner
1h 6m
Jun 29, 2021
Reading and Writing Data with Ruby
Intermediate
1h 37m
Nov 20, 2020
Section Introduction Transcripts
Section Introduction Transcripts

Course Overview
Hi, everyone. My name is Raphael Alampay, and welcome to my course, Generating User Resources with Rails. I am currently managing my own software development company with Rails as one of the primary technology stacks being used in various projects. Ever wondered how web applications persist its data? Any modern web application has to have some way to store and retrieve data from the database. In fact, technologies can change, but the underlying design of your data model rarely does. That's why it is integral to engineer proper data model design by creating resources that reflect an application's data structure. In this course, we will see how easy it is to engineer such designs using the Rails framework. Some of the major topics that we will cover include learning how to design resources by implementing data models first that is tied into business rules, learn how to create and query resources, as well as how relationships between various data models work, both underneath the hood and in Rails, get the ball rolling by quickly creating a prototype of your application based on your resources design model. By the end of the course, you have a grasp on why it is important to design first before generating resources and how to implement resource generation in code. Before beginning the course, you should be familiar with object‑oriented programming in Ruby, familiarity with the Rails framework, and at least some working knowledge on how databases work. From here, you should be able to implement your own design based on the context of your own projects and start engineering applications with a good, solid data model layer. I hope you'll join me on this journey to learn more about engineering your application's data layer with the Generating User Resources with Rails course only here, at Pluralsight.