Thanks Starr.

I tried that...
But each individual item in a topic can be edited/deleted or new one 
could be added to the topic. In addition, each one has some filter on 
who can edit/delete etc..

I am unable to add these add/edit/delete links to these items. Does it 
mean something is wrong with my config/routes file?
Apart from default route, right now I have:
map.resources :topic, :has_many => items, :collection => 
{:populate_counties => post}
Step by step I will add other resource associations (e.g.: map.resources 
:items :has_many :attachments) - when I am sure whats the right way to 
do it.

Any clues?

Thanks,
CS.

Starr Horne wrote:
>> How can I render all the topics, items, and attachments in a single
>> page. Previously I used lot of partials wherein main show page would
>> call _topics partial and it would then call _items partial etc...
> 
> There shouldn't be any problem at all doing this.
> 
> You'd have a topics page, say yoursite.com/topics/sometopic
> 
> Then in the view you just loop through @topic.articles, etc. Just 
> because you have a restful URL scheme, it doesn't mean that your view 
> can only display data from one model.
> 
> SH
> 
> --
> Starr Horne
> My blog: http://starrhorne.com
> Check out my Helpdesk RailsKit: http://railskits.com/helpdesk/

-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to