component like behavior with nested restful routes in beast

I'm using beast, which has routes that look like this:

  map.resources :forums do |forum|     forum.resources :topics do |topic|       topic.resources :posts, :monitorships     end   end

I want an action from another controller to display the content that would be displayed if I navigated to, for example, /forums/1/topics/2 , along with other content not normally displayed by that action. Is this possible? I tried using render_component, but some of the instance variables in TopicsController.show could not be set properly.

Thanks Daniel

Anybody?

Daniel Higginbotham wrote:

I use a helper to replace render component; not sure is it helpful for you.

def render_remote(url, view = 'remote')       options = {}       options[:update] = view       options[:url] = url       options[:method] = :get       render :inline => %{<span id="#{view}"><p>Loading...</p><script type="text/javascript" language="JavaScript">#{remote_function(options)}</script></span>} end

herngwah