[Rails] routes problem

2011-12-01 Thread Vogon Primo
Hi all, In a sample project, I have a nested resource called ticket, and parent resource called project. rake routes: ... project_tickets GET/projects/:project_id/tickets(.:format) {:action=>"index", :controller=>"tickets"} POST /projects/:project_id/

[Rails] Routes problem in form

2011-01-09 Thread JD
Hello all, I'm relatively new to rails and have been doing ok with it but I have run into an issue that I'm sure has a really easy solution that I just can't seem to see. Basically I have an app and have namespaced and admin section to it. I'm getting the following error: No route matches {:acti

[Rails] Routes problem

2009-08-28 Thread John Mcleod
Hello all, Here's a newbie question (4 weeks and counting). My routes.rb is as below. map.resources :projects, :departments, :users, :admins, :imports, :notes #Below is route in question map.resources :projects, :collection => { :view_all => :get } map.home '', :controller => 'projects', :actio

[Rails] Routes problem.

2008-10-13 Thread gdiazl
Hello, Just a single problem i can't solve. The scenario... I have a controller called "places" but i don't want to link the users to /places/whatever, i want something like /no/whatever. How to achieve this? I have in my routes.rb: map.resources :no, :controller => "places", map.connect ':co