From: Phillip Gawlowski Date: 2007-03-27T22:50:50+09:00 Subject: Re: How Routing Rails? Yamal Khaled Soueidan wrote: > Hello, > > I'm trying to do develop some modules so I can reuse all my codes in > different projects. > > I need to put routing in different files, and in route.rb include the > files which have my routing code, but I don't know if this would work? > > Example, the following lines is inside route_account.rb. > > map.login 'login', :controller => 'accounts', :action => 'login' > map.login 'signup', :controller => 'accounts', :action => 'signup' > map.logout 'logout', :controller => 'accounts', :action => 'logout' > map.account 'account' :controller => 'accounts', :action => 'account' > > I tried to include the line below in route.rb, but that wouldn't work? > > include 'route_account.rb' > or load 'route_account.rb' or require 'route_account' > > Any help would be appropriated :) and thanks > > Regards, > Jamal > > Thanks for your help! > http://www.rubyonrails.org/community -- Phillip "CynicalRyan" Gawlowski Rule of Open-Source Programming #15: If you like it, let the author know. If you hate it, let the author know why.