Hi Marnen, i have created a projects controller with a field called status. The "status" have the following values: "suggested", "inprogress" and "finished". I want to be able to use these actions: project/suggested/new project/suggested/1/edit project/suggested/assign_to_student ... ... project/finished/new project/finished/1/edit etc
The goal is to be able to edit,update,create, delete (and some other actions) a project while having a specific status. The forms in each value should be different. On Jan 26, 5:07 pm, Marnen Laibow-Koser <li...@ruby-forum.com> wrote: > Kostas Lps wrote in post #976978: > > > Hi guys, > > i have a model named "project" and i have created routes namespace: > > namespace :project do > > resources :inprocess do > > get 'assign', :on => :collection > > end > > resources :suggested do > > get 'select_list', :on => :collection > > post 'select_list', :on => :collection > > end > > resources :finished > > end > > I think you're abusing nested resources. inprocess, suggested, and > finished probably shouldn't be resources of their own. What are you > trying to achieve here? > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...@marnen.org > > Sent from my iPhone > > -- > Posted viahttp://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.