Rails Route Globbing
Using a wildcard syntax (*
) when defining routes in routes.rb
, we can slurp
up URL segments and make them available in our controller params
. This blog post discusses this lesser known Rails routing feature with a potential use case.
Post a comment