Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: How Routing Rails?
Phillip Gawlowski
3/27/2007 1:51:00 PM
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...
--
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.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: How Routing Rails?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password