filmov
tv
Rails 6 API Tutorial - Exception handling in controllers p.7
Показать описание
In this video series we will build a Rails API from scratch. Backend APIs are useful for serving data to frontend applications, mobile apps or other backend services.
This video covers:
0:32 - Ruby exceptions
0:54 - Rescuing ActiveRecord::RecordNotDestroyed from destroy! with an inline rescue block
2:29 - The drawbacks of inline rescue for Rails controllers
3:56 - Using rescue_from to handle exceptions from any controller/action
5:36 - Moving the rescue_from to ApplicationController so that it handles exceptions from any controller in the application
6:38 - Rendering ActiveRecord object errors in the API response body
This video covers:
0:32 - Ruby exceptions
0:54 - Rescuing ActiveRecord::RecordNotDestroyed from destroy! with an inline rescue block
2:29 - The drawbacks of inline rescue for Rails controllers
3:56 - Using rescue_from to handle exceptions from any controller/action
5:36 - Moving the rescue_from to ApplicationController so that it handles exceptions from any controller in the application
6:38 - Rendering ActiveRecord object errors in the API response body
Rails 6 API Tutorial - Create project and routing p.1
Rails 6 API Tutorial - Namespacing and versioning p.8
Rails 6 API Tutorial - Destroy Controller Action p.6
Rails 6 API Tutorial - Model Associations p.11
Rails 6 API to upload many/multi images to a model
Rails 6 API Tutorial - API Response Body Specs & Using Spec Helpers p.14
Rails 6 API Tutorial - RSpec API Tests POST/DELETE p.10
Rails 6 API Tutorial - Building a POST Endpoint p.3
Intro to Ruby on Rails 7 Full stack Tutorial | Rails for Beginners Part 3
Rails 6 API Tutorial - Authentication with JWT Intro p.18
Rails 6 API Tutorial - Fixing authentication specs and improving the codebase p.24
Rails 6 API Tutorial - Active Record Validations p.5
Rails 6 API Tutorial - Exception handling in controllers p.7
Create a Basic API with Ruby on Rails - Part 1 - Returning JSON Data
Rails 6 API Tutorial - API Tests with RSpec p.9
Rails 6 API Tutorial - Basic controllers and models p.2
Rails 6 API Tutorial - Finding the user and adding their ID to the JWT payload p.21
Rails 6 API Tutorial - Controller Representers p.12
Rails 6 API Tutorial - Creating Multiple Records in Controllers p.13
Rails 6 API Tutorial - JWT Authentication Service p.20
Rails 6 API Tutorial - Active Job For Time Intensive Operations p.16
Rails 6 API Tutorial - Building an Authentication Endpoint p.19
Rails 6 API Tutorial - HTTP Status Codes p.4
Rails 6 API Tutorial - Using has_secure_password for Authentication p.22
Комментарии