ruby on rails - Understanding Application.routes.draw source code -


a couple of months ago started developing web apps rails. new framework use, step further understanding i’ve started read source code. maybe it’s relative recent learning of ruby, i’m having troubles making sense of it.

today decided application.routes.draw (from routes.rb) , actiondispatch::routing documentation found draw method defined in rails/actionpack/lib/action_dispatch/routing/route_set.rb fail see in application.rb (or engine.rb or railtie.rb) comes play. additionally don’t see routes method in application defined.

any answer or link appreciated. in advance.

ok, found routes method in engine.rb, line #488. i’ll take there.


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -