Actionpack

Rails 7.1 path_params for url_for

path_params allows specified params to be used exclusively for named segments under scoped routing without unnecessarily appending parameters to every URL.