Rails helper methods like `.present?`, `.blank?`, and `3.days.ago` are not part of Ruby itself — they come from the ActiveSupport gem. You can use ActiveSupport in any standalone Ruby script by installing the gem and either requiring `active_support/all` for everything, or cherry-picking only the specific extensions you need (recommended for performance). Highlighted methods include `.blank?`/`.present?`, time helpers, string manipulations like `.squish` and `.pluralize`, `Array#in_groups_of`, `Hash#with_indifferent_access`, and `Enumerable#pluck`.

4m read timeFrom norvilis.com
Post cover image
Table of contents
STEP 1: The SetupSTEP 2: The “All In” ApproachSTEP 3: The “Cherry-Picking” Approach (Recommended)My Top 3 ActiveSupport MethodsSummary

Sort: