Subscribe to GoRails to get access to this episode and all other pro episodes, and new awesome content every month.
Unlimited access. Cancel anytime.
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
Very useful feature this is. Thanks for sharing. Also discovered 'any?' in this episode - I;ve always been using present? to check - but Googled this and it says .any? is faster. So learnt about that too :) Thanks!