I have a simple partial to show some topics from the associated community
<%= render :partial => 'shared/topic', :collection => @community.topics %>
I'm trying to make a mobile version of the site, and to not render the partial to the same view, but to a new view.
I tried something like this
def topicsCommunity
fetch_topics ["community_id = ?", @community.id]
render :action => 'index'
end
But I can't get the community.id from my community view.
Also tried this :
@topicscommunity = @community.topics.find(:all,
:conditions => {:community_id => @community.id})
But from the topics_Controller, it didn't work.
Thanks for the help.