[Rails] Re: Nested Routes Best Practices

2009-09-15 Thread AppleII717
You are right. I think I just added the :only => [:index] to test the concept. I was trying to point out that even with: map.resources :lists, :shallow => true, :has_many => :items The index action is called and you must handle the situation that this only applies if :item_id is present. In

[Rails] Re: Nested Routes Best Practices

2009-09-14 Thread Sijo Kg
Hi Steve Alex I cant understand why you need map.resources :items, :only => [:index] since item always coexist with lists So why it treated as seperate? Cant you do like map.resources :lists, :shallow => true, :has_many => :items And then in index of items as def index @list_item