Create routes dynamically

How to create routes dynamically on rails 3.

Could you give an example of what you’re trying to achieve?

Javier Q


This RailsCast is a little bit older (Rails 3 has a new syntax for routes) but the idea remains the same:

Use a catch all route…

Best Regards,