Загрузка страницы

Episode #504 - Boolean vs Datetime

In this episode, we look at refactoring an existing application where it uses a boolean to determine if a post is published or unpublished. However, this feature has its limitations, so we change the functionality to work off of a datetime column instead.

► Full Episode - https://www.driftingruby.com/episodes/boolean-vs-datetime

00:00 - Introduction
02:00 - Looking at the existing application
02:28 - Migration
08:01 - Updating the Controller
08:33 - Updating the Model
10:44 - Updating the view
12:24 - Final thoughts

Sponsor message:

Honeybadger is a performance monitoring and error tracking tool that combines the best monitoring features into one simple interface that works with all the frameworks you use and comes with fantastic support from a small team of passionate developers.

With error tracking, performance and uptime monitoring, log management, dashboards, and more, Honeybadger has everything you need to gain real-time insights into the health of your applications.

Keep your apps healthy and your customers happy with Honeybadger!
It’s free to get started, and setup takes less than five minutes.

Start monitoring today → https://www.honeybadger.io/?utm_source=driftingruby&utm_medium=podcast

► Visit the Merchandise Store - https://www.railsstore.com/
► Ruby on Rails Templates - https://www.rubidium.io
► Subscribe to Drifting Ruby at https://www.driftingruby.com/subscription/new

#ruby #rubyonrails #programming #code #hotwire #javascript #development

Видео Episode #504 - Boolean vs Datetime канала Drifting Ruby
rails, development, screencast, tutorial, learning, education, tips, tricks, podcasts, programming, ruby, framework, training, ruby on rails, screencasts
Показать
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки