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_items = list.items
end
def list
@list = List.find(params[:list_id])
end
Sijo
--
Posted via http://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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---