[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

calling same page using two url with the help of routes.rb

Salil Gaikwad

3/6/2009 12:36:00 PM

I want to access same page using two different url's for that i had done
following in routes.rb
1] map.connect 'projects/:project_id/issues/:action', :controller =>
'issues'
so when my url is
http://localhost:3000/projects/xyz/issues/new

i access the new.rhtml page of a issue controller

what i want that when i write simply

http://localhost:3000/issues/new it should render me to the action new
of a issues controller.

i try something like this in routes.rb

map.connect 'issues/:action', :controller => 'issues', :action=>'new'

and then restart the server but it doesn't works....
--
Posted via http://www.ruby-....

2 Answers

lasitha

3/6/2009 2:21:00 PM

0

On Fri, Mar 6, 2009 at 6:05 PM, Salil Gaikwad <salil@cipher-tech.com> wrote:
> I want to access same page using two different url's for that i had done
> following in routes.rb

Hello Salil. You're unlikely to get any help on this list because its
a plain Ruby list. Please try the rails-talk list:
http://www.ruby-forum.c...

Cheers,
lasitha

Salil Gaikwad

3/6/2009 2:37:00 PM

0

lasitha wrote:
> On Fri, Mar 6, 2009 at 6:05 PM, Salil Gaikwad <salil@cipher-tech.com>
> wrote:
>> I want to access same page using two different url's for that i had done
>> following in routes.rb
>
> Hello Salil. You're unlikely to get any help on this list because its
> a plain Ruby list. Please try the rails-talk list:
> http://www.ruby-forum.c...
>
> Cheers,
> lasitha

Thanx lasitha
--
Posted via http://www.ruby-....