views:

128

answers:

4

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
wow, how many resources is that? I thought RoR is supposed to ease the URI management but 1000 seems excessive.
Zepplock
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
+1  A: 

660 in my non-scaffold application. Only problem is rake routes takes a tick to load.

Matt Darby
Yeah, I bet it does!
CalebHC
A: 

Thanks for the info everyone. I guess I really have nothing to worry about! :)

CalebHC
A: 

No but I recommend checking out the guide just in case you missed something: http://guides.rubyonrails.org/routing.html

Ryan Bigg