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
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
2 matches
Mail list logo