Dynamic Database Switching in Rails it depends on url