[Rails] Re: routes.rb problem

2009-03-07 Thread Sarah Allen
Salil Gaikwad wrote: > 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 Try this in irb >> rts = ActionController::Routing::Routes >> rts.recognize_path("issues/new") and it

[Rails] Re: routes.rb problem

2009-03-06 Thread sahil
On Mar 6, 7:39 pm, Salil Gaikwad wrote: > I am having problem with routes.rb > > 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' you should always use.. RESTful

[Rails] Re: routes.rb problem

2009-03-06 Thread Bob Martens
Can you show us your rake routes to see what you have defined? On Mar 6, 12:21 pm, tomrossi7 wrote: > Where does the application take you when you go to /issues/new?  You > can always comment out other routes until you find the one that is > causing the conflict... > --Tom > > On Mar 6, 9:39 am,

[Rails] Re: routes.rb problem

2009-03-06 Thread tomrossi7
Where does the application take you when you go to /issues/new? You can always comment out other routes until you find the one that is causing the conflict... --Tom On Mar 6, 9:39 am, Salil Gaikwad wrote: > I am having problem with routes.rb > > I want to access same page using two different ur

[Rails] Re: routes.rb problem

2009-03-06 Thread Bob Martens
Why not just map.resources :issues and go from there? That is a RESTful resource, right? On Mar 6, 8:39 am, Salil Gaikwad wrote: > I am having problem with routes.rb > > I want to access same page using two different url's for that i had done > following in routes.rb > 1]   map.connect 'projects