Building Web Apps with Ruby On Rails

Paths

Building Web Apps with Ruby On Rails

Authors: Olivier Lacan, Raphael Alampay, Anthony Alampi, Nitin Singh

Ruby on Rails, or Rails, is a server-side web application framework written in Ruby that uses a model–view–controller (MVC) framework, providing default structures for a database,... Read more

  • Set up your Ruby development environment
  • Build a basic CRUD Rails application
  • Add a User resource to a Rails Application
  • Authenticate Users in a Rails Application
  • Build live notifications for Rails with ActionCable
  • Test Rails Applications
  • Create an API with Rails

Pre-requisites

  • HTML
  • CSS
  • Ruby
  • JavaScript

Building Web Apps with Ruby On Rails

Ruby on Rails, or Rails, is a server-side web application framework written in Ruby that uses a model–view–controller (MVC) framework, providing default structures for a database, a web service, and web pages. It encourages the use of web standards such as JSON or XML for data transfer and HTML, CSS and JavaScript for user interfacing. In addition to MVC, Rails emphasizes the use of other well-known software engineering patterns and paradigms, including convention over configuration (CoC), don't repeat yourself (DRY), and the active record pattern.

Ruby on Rails: The Big Picture

by Olivier Lacan

Jan 23, 2021 / 53m

53m

Start Course
Description

In this course, Ruby on Rails: The Big Picture, you’ll learn how Rails can empower you to build web applications from scratch. First, you’ll explore what Rails actually is — a comprehensive web development framework that comes with all you need out of the box. Next, you’ll discover why Rails still stands apart from many web development frameworks many years after making its début. Finally, you’ll learn how to use Rails to build a basic web application and the many things you won’t have to do in the process. When you’re finished with this course, you’ll know enough about Ruby on Rails to start building your first Ruby on Rails application.

Table of contents
  1. Course Overview
  2. What Is Ruby on Rails?
  3. Why Is Rails Still so Good?
  4. How Do I Use Rails?

Adding a User Resource to a Rails Application

by Raphael Alampay

Mar 2, 2021 / 1h 38m

1h 38m

Start Course
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.

Table of contents
  1. Course Overview
  2. Designing Data Models
  3. Implementing Business Rules
  4. Building an Application Prototype

Authenticating Users in a Rails Application

by Anthony Alampi

Aug 27, 2020 / 38m

38m

Start Course
Description

Do you need information on user authentication in Ruby, fast? In this course, Authenticating Users in a Rails Application, you’ll learn to implement user authentication in Ruby apps. First, you’ll explore how to authenticate users and securely store their passwords. Next, you’ll discover how to keep users signed in with sessions and cookies Finally, you’ll learn how to provide feedback to users through form validation. When you’re finished with this course, you’ll have the skills and knowledge of Ruby User Authentication needed to begin deploying in live applications.

Table of contents
  1. Course Overview
  2. Understanding Password Storage and Security in Ruby
  3. Keeping Users Signed in with Secure Session Management
  4. Validating with Flash Storage

Testing a Rails Application

by Anthony Alampi

Dec 30, 2020 / 56m

56m

Start Course
Description

Rails testing systems allows developers to thoroughly test web apps for bugs to ensure a quality user experience. In this course, Testing a Rails Application, you’ll learn to locate and fix errors and bugs in the Ruby framework. First, you’ll explore how to set up a testing environment and a test database of demo data. Next, you’ll discover how to perform unit tests within Ruby. Finally, you’ll learn how to complete end-to-end tests to mimic user interaction. When you’re finished with this course, you’ll have the skills and knowledge of Ruby testing needed to produce and test quality Ruby apps.

Table of contents
  1. Course Overview
  2. Setting Up a Test Environment and Data
  3. Creating Low-level Unit Tests with Helpers
  4. Combining Unit Tests to Form Integration Tests
  5. Creating End-to-end Tests

Creating an API with Rails

by Nitin Singh

Nov 11, 2020 / 1h 51m

1h 51m

Start Course
Description

This course, Creating an API with Rails, will enable you to create elegant, predictable, and fast APIs for your app that are extensible and secure.

First, you will explore how to authenticate the APIs that your app is exposing. You will see both basic HTTP authentication and the JWT token authentication approach.

Next, you will learn how to provide different response formats like HTML, JSON, etc from a controller. You will then learn how to serialize the models in your app to JSON and how to use the Jbuilder tool to create complex JSON responses that involve multiple resources all the while keeping the code clean and easy to modify.

Finally, you will learn how to make your APIs future proof by adding support for pagination, API versioning, and alternative ways of querying and serving data using tools like GraphQL and Graphiti.

When you are finished with this course, you will be very comfortable creating APIs in Rails that can not only support multiple complex response formats but are secure, elegant, fast, and extensible.

Table of contents
  1. Course Overview
  2. Creating API Authentication
  3. Serving Multiple Formats from a Controller
  4. Serializing Models to JSON
  5. Creating Complex JSON Responses Using JBuilder
  6. Implementing Pagination for an API Endpoint
  7. Enabling API Versioning for an Endpoint
  8. GraphQL and Graphiti as Alternatives for Rest APIs
Offer Code *
Email * First name * Last name *
Company
Title
Phone
Country *

* Required field

Opt in for the latest promotions and events. You may unsubscribe at any time. Privacy Policy

By providing my phone number to Pluralsight and toggling this feature on, I agree and acknowledge that Pluralsight may use that number to contact me for marketing purposes, including using autodialed or pre-recorded calls and text messages. I understand that consent is not required as a condition of purchase from Pluralsight.

By activating this benefit, you agree to abide by Pluralsight's terms of use and privacy policy.

I agree, activate benefit