Dynamically declaring routes

Is it possible to dynamically add routes outside of the routes.rb?
Can I add routes at runtime which are stored in a database?