Dynamic Routes

Hi, do you have a clean way to manage dynamic routes?

There is a suggestion here with render_component but it is deprecated..
http://stackoverflow.com/questions/129510/is-it-a-bad-idea-to-reload-routes-dynamically-in-rails

Thanks