Multiple route files

I found change in rails default path for routes:





This was introduced in and later on removed (but without path change) in favor of…2d9dbf416b14

Multiple route files feature can be easly achived by:


Now it need to be changed to:


which looks like something terribly wrong is going on - concatenating multiple files to path that is pointing to single file (routes.rb).

I’m wondering if this can be changed back and Rails could provide “official” way of supporting multiple route files just as posted above without any changes to existing DSL.

Let me know if this approach shouldn’t be used for any reason - it works for me for a long time without any problems.

Anyone have some opinion about that?

We added this and removed it for a reason. It's really easy to roll
your own, just use ruby:

Steve that is exactly what I’m doing.

But as you can see there is no more config.paths[“config/routes”] but config.paths[“config/routes.rb”] and it looks inappropriate when concatenating array to that “file”:

W dniu wtorek, 12 marca 2013 16:36:25 UTC+1 użytkownik Steve Klabnik napisał: