Skip to main content

All ActiveSupport Episodes

Fallback 22:18
Rails 5.2 ActiveSupport CurrentAttributes & Basecamp 3 Account ID URL Scheme
#234 · Pro

Rails 5.2's adds CurrentAttributes to give you access to global variables in your apps. We'll use this feature to implement a Rack middleware to build Basecamp 3 style URLs that automatically include the current Account ID in every URL

Fallback 13:06
Handle 404s Better Using Rescue_from
#226 · Pro

Rather than serving your user's a 404 dead end, we can use the ActiveSupport rescue_from method to give users search results instead and how to reuse this with ActiveSupport Concerns

Subscribe to the newsletter

Join 18,000+ developers who get early access to new screencasts, articles, guides, updates, and more.

By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

More of a social being? We're also on Twitter and YouTube.