What I enjoy most in Ruby is working with date and time objects.
The standard library implements time arithmetic especially elegantly: adding and subtracting seconds, days, and months.
I've never seen anything like this in any other language, where it looks so clear, concise, and beautiful:

```ruby
require 'time'

date = Time.now.to_date
date + 3 # 3 days from now
date - 3 # 3 days ago
date >> 6 # 6 months from now
date << 6 # 6 months ago
```

#Ruby #Rails #ActiveSupport #Date #Time #Duration

Rails 주간 뉴스: 안전한 to_i 변환, 커스텀 날짜 형식 및 PostgreSQL 18.4 지원

ActiveModel의 to_i 자동 변환 시 입력 문자열 길이를 제한하여 매우 긴 문자열로 인한 DoS 공격 위험을 막습니다.

🔗 원문 보기

다국어 환경에서 Rails Inflections(굴절) 설정하기

Ruby의 예약어인 Class 대신 아일랜드어인 Rang을 모델 이름으로 사용하면서 발생하는 복수형 처리 문제를 해결한다.

🔗 원문 보기

다국어 환경에서 Rails Inflections(굴절) 설정하기

Ruby의 예약어인 Class 대신 아일랜드어인 Rang을 모델 이름으로 사용하면서 발생하는 복수형 처리 문제를 해결한다.

Ruby-News | 루비 AI 뉴스

Rails 8.2: Date 및 Time에 this_week?, this_month?, this_year? 메서드 추가

Rails 8.2의 ActiveSupport에 현재 주, 월, 연도 포함 여부를 확인하는 this_week?, this_month?, this_year? 조건자 메서드가 추가되었다.

🔗 원문 보기

Rails 8.2: Date 및 Time에 this_week?, this_month?, this_year? 메서드 추가

Rails 8.2의 ActiveSupport에 현재 주, 월, 연도 포함 여부를 확인하는 this_week?, this_month?, this_year? 조건자 메서드가 추가되었다.

Ruby-News | 루비 AI 뉴스

Rails 소식: 2026년 4월 5일 - SQL 로그 컬러링 최적화 및 Postgres OID 사전 정의

ActiveRecord의 SQL 로그 컬러링 성능이 정규식 앵커링을 통해 개선되었으며, 긴 쿼리 처리 시 발생하던 타임아웃 위험을 방지한다.

🔗 원문 보기

Rails 소식: 2026년 4월 5일 - SQL 로그 컬러링 최적화 및 Postgres OID 사전 정의

ActiveRecord의 SQL 로그 컬러링 성능이 정규식 앵커링을 통해 개선되었으며, 긴 쿼리 처리 시 발생하던 타임아웃 위험을 방지한다.

Ruby-News | 루비 AI 뉴스
CVE Alert: CVE-2026-33176 - rails - activesupport - RedPacket Security

Active Support is a toolkit of support libraries and Ruby core extensions extracted from the Rails framework. Prior to versions 8.1.2.1, 8.0.4.1, and 7.2.3.1,

RedPacket Security
以下のタグの Qiita 記事がこの1時間に投稿されました。
➖➖➖➖➖➖➖➖➖➖
#activesupport
#alexa
#alexaskillskit
#ask_cli
#atcoder
#aws
#box
#capsnet
#codebuild
#cron
#csharp
#deeplearning
#elb
#es6
#gans
#googleanalytics
#jackson
#java
#javascript
#keras
#linux
#nodejs
#npm
#php
#postgresql
#rails
#reactnative
#sar
#spring
#springboot
#sql
#stickysession
#sysstat
#travisci
#typescript
➖➖➖➖➖➖➖➖➖➖
各 Qiita 記事へのリンクは、このトゥートのスレッドに「非公開」もしくは「未収載」でトゥートされています。
スレッドを見るにはこのトゥートをクリックしてください。