I'm working on a Rails application right now and the site currently has about 30 routes(map.connect). I expect that to eventually reach about 60 or 70. Is there any side effect of having lots of routes? I guess I'm just paranoid! :) Thanks
+2
A:
Re: 70 routes a problem?
No, it works fine. My Rails project has about 1000 and it works fine.
(It has that many because a scaffold that I use, Hobo, is automatically creating them)
Larry K
2009-10-14 23:32:26
wow, how many resources is that? I thought RoR is supposed to ease the URI management but 1000 seems excessive.
Zepplock
2009-10-15 05:55:34
I have 1067 in my app (this is Rails 2.3, so it was almost 2000 before they removed the formatted_* routes). The routes.rb is only 240 lines. I have 109 controllers and 124 models.
dasil003
2009-10-15 06:46:59
+1
A:
660 in my non-scaffold application. Only problem is rake routes
takes a tick to load.
Matt Darby
2009-10-15 03:04:28
A:
Thanks for the info everyone. I guess I really have nothing to worry about! :)
CalebHC
2009-10-15 06:15:34
A:
No but I recommend checking out the guide just in case you missed something: http://guides.rubyonrails.org/routing.html
Ryan Bigg
2009-10-15 07:49:29